From: Marius Mauch Date: Sun, 28 Jan 2007 10:31:41 +0000 (-0000) Subject: Catch EACCESS when running env-update, orignal patch by (bug... X-Git-Tag: v2.2_pre1~1792 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e55e6e7f456155a7484a265131c869454a04e9e0;p=portage.git Catch EACCESS when running env-update, orignal patch by (bug #106061) svn path=/main/trunk/; revision=5803 --- diff --git a/bin/env-update b/bin/env-update index b245b3990..b919a1267 100755 --- a/bin/env-update +++ b/bin/env-update @@ -28,4 +28,11 @@ try: except ImportError: sys.path.insert(0, "/usr/lib/portage/pym") import portage -portage.env_update(makelinks) +try: + portage.env_update(makelinks) +except IOError, e: + if e.errno == 13: + print "env-update: Need superuser access" + sys.exit(1) + else: + raise