From cb829624a5abc1d059ada0d86409f66a68dd5cf3 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 28 Jan 2007 19:37:45 +0000 Subject: [PATCH] Merged from trunk 5813:5814 use errno.EACCES as suggested by Brian Harring (WarnerBro) svn path=/main/branches/prefix/; revision=5816 --- bin/env-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/env-update b/bin/env-update index bcc5a9044..09d6b7bc7 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: /var/cvsroot/gentoo-src/portage/bin/env-update,v 1.9 2004/10/04 13:56:50 vapier Exp $ -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: -- 2.26.2