summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-28 19:04:06 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-28 19:04:06 +0000
commitfa0bea1c31100ace6153bf082f1aade4c2d94d79 (patch)
tree4c92dcef8350f8e49597e6f9ab88eafebe76063d /bin/env-update
parenttranslate unicode quotes to ascii ones so we can keep our regex simple (diff)
downloadportage-idfetch-fa0bea1c31100ace6153bf082f1aade4c2d94d79.tar.gz
portage-idfetch-fa0bea1c31100ace6153bf082f1aade4c2d94d79.tar.bz2
portage-idfetch-fa0bea1c31100ace6153bf082f1aade4c2d94d79.zip
use errno.EACCES as suggested by Brian Harring
svn path=/main/trunk/; revision=5814
Diffstat (limited to 'bin/env-update')
-rwxr-xr-xbin/env-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/env-update b/bin/env-update
index b919a126..69daaca8 100755
--- a/bin/env-update
+++ b/bin/env-update
@@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import os,sys
+import os, sys, errno
def usage(status):
print "Usage: env-update [--no-ldconfig]"
@@ -31,7 +31,7 @@ except ImportError:
try:
portage.env_update(makelinks)
except IOError, e:
- if e.errno == 13:
+ if e.errno == errno.EACCES:
print "env-update: Need superuser access"
sys.exit(1)
else: