summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-02-12 02:42:21 +0000
committerZac Medico <zmedico@gentoo.org>2006-02-12 02:42:21 +0000
commitc4bfd524945b9782cbddcd176e4eeae73e06f6c3 (patch)
tree125d78d78f1ac4ac3a3e263115cde70ef4bff1ea
parentfb04140258292c62d1b2bd8bc42ed4d213445421 (diff)
downloadportage-c4bfd524945b9782cbddcd176e4eeae73e06f6c3.tar.gz
portage-c4bfd524945b9782cbddcd176e4eeae73e06f6c3.tar.bz2
portage-c4bfd524945b9782cbddcd176e4eeae73e06f6c3.zip
import errno at the top of portage.py
svn path=/main/trunk/; revision=2694
-rw-r--r--pym/portage.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 610e0cff0..143371a48 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -19,7 +19,7 @@ except:
raise SystemExit, 127
try:
- import os,string,types,signal,fcntl
+ import os,string,types,signal,fcntl,errno
import time,traceback,copy
import re,pwd,grp,commands
import shlex,shutil
@@ -1845,7 +1845,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
try:
portage_util.apply_permissions(filename, gid=portage_gid, mode=0775)
except OSError, oe:
- import errno
if oe.errno == errno.EPERM:
writemsg("!!! Unable to apply group permissions to '%s'. Non-root users may experience issues.\n"
% filename)
@@ -1857,7 +1856,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
try:
distdir_perms(distlocks_subdir)
except OSError, oe:
- import errno
if oe.errno == errno.ENOENT:
os.mkdir(distlocks_subdir)
distdir_perms(distlocks_subdir)
@@ -3022,7 +3020,6 @@ def movefile(src,dest,newmtime=None,sstat=None,mysettings=None):
except SystemExit, e:
raise
except Exception, e:
- import errno
if e[0]!=errno.EXDEV:
# Some random error.
print "!!! Failed to move",src,"to",dest