Skip to main content

Source code Changes To

pkg-gate / src / modules / client / imageplan.py

From revision 2916 to 2918:

diff -r 0ee0ea96dde6 -r ff3c422dd0e3 src/modules/client/imageplan.py
--- a/src/modules/client/imageplan.py	Thu Jul 18 09:38:51 2013 -0700
+++ b/src/modules/client/imageplan.py	Thu Jul 18 11:15:43 2013 -0700
@@ -423,7 +423,7 @@
                 self.__plan_install(pkgs_inst=pkgs_inst,
                      reject_list=reject_list)
 
-        def __get_attr_fmri_changes(self, get_mattrs): 
+        def __get_attr_fmri_changes(self, get_mattrs):
                 # Attempt to optimize package planning by determining which
                 # packages are actually affected by changing attributes (e.g.,
                 # facets, variants).  This also provides an accurate list of
@@ -1361,7 +1361,7 @@
                 # We end up with no actions or start with one or none and end
                 # with exactly one.
                 if len(actions) == 0 or (len(oactions) <= len(actions) == 1):
-                        if (len(oactions) > 1 and 
+                        if (len(oactions) > 1 and
                             any(a[0].attrs.get("overlay") == "true"
                                 for a in oactions)):
                                 # If more than one action is being removed and
@@ -2461,6 +2461,8 @@
                                 if isinstance(note, unicode):
                                         note = note.encode("utf-8")
                                 print >> tmpfile, note
+			# make file world readable
+			os.chmod(path, 0644)
                         tmpfile.close()
                         self.pd.release_notes_name = os.path.basename(path)
 

 
 
Close
loading
Please Confirm
Close