If necessary, apply appropriate permissions to previously fetched files for bug ...
authorZac Medico <zmedico@gentoo.org>
Fri, 26 May 2006 03:27:41 +0000 (03:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 May 2006 03:27:41 +0000 (03:27 -0000)
svn path=/main/trunk/; revision=3416

pym/portage.py

index d604c9baed401f2d0390d32301b8870d37f1a1a5..9ab6ad76e903171c24b65182b70dd295c23a43f4 100644 (file)
@@ -1923,6 +1923,9 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                                                writemsg(_("Local mirror has file: %(file)s\n" % {"file":myfile}))
                                                shutil.copyfile(mydir+"/"+myfile,destdir+"/"+myfile)
                                                break
+                       else:
+                               apply_secpass_permissions(os.path.join(mysettings["DISTDIR"], myfile), gid=portage_gid,
+                                       mode=0664, mask=02)
                except (OSError,IOError),e:
                        # file does not exist
                        writemsg(_("!!! %(file)s not found in %(dir)s\n") % {"file":myfile, "dir":mysettings["DISTDIR"]})