diff options
-rwxr-xr-x | bin/env-update | 9 |
1 files changed, 8 insertions, 1 deletions
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 |