From: Zac Medico Date: Fri, 26 May 2006 03:38:57 +0000 (-0000) Subject: Fix the last revision so it also works for files copied from local fsmirrors. X-Git-Tag: v2.1~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=061bfd16ebe338601493702c255ca562450732ed;p=portage.git Fix the last revision so it also works for files copied from local fsmirrors. svn path=/main/trunk/; revision=3417 --- diff --git a/pym/portage.py b/pym/portage.py index 9ab6ad76e..761e14ed8 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1923,9 +1923,11 @@ 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: + try: apply_secpass_permissions(os.path.join(mysettings["DISTDIR"], myfile), gid=portage_gid, mode=0664, mask=02) + except portage_exception.FileNotFound: + pass except (OSError,IOError),e: # file does not exist writemsg(_("!!! %(file)s not found in %(dir)s\n") % {"file":myfile, "dir":mysettings["DISTDIR"]})