summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-26 03:27:41 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-26 03:27:41 +0000
commit4c4f89cbd7324dacd9175e1e62c35e7bd0d1160e (patch)
treede01c5f4fb42e226bb265e199c8f12b8e218544d
parentb3670dbc01e9e0074734e5c863c045c7c2e09122 (diff)
downloadportage-4c4f89cbd7324dacd9175e1e62c35e7bd0d1160e.tar.gz
portage-4c4f89cbd7324dacd9175e1e62c35e7bd0d1160e.tar.bz2
portage-4c4f89cbd7324dacd9175e1e62c35e7bd0d1160e.zip
If necessary, apply appropriate permissions to previously fetched files for bug #112612.
svn path=/main/trunk/; revision=3416
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d604c9bae..9ab6ad76e 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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"]})