[Piuparts-commits] rev 627 - trunk
Holger Levsen
holger at alioth.debian.org
Tue Jan 5 15:38:25 UTC 2010
Author: holger
Date: 2010-01-05 15:38:25 +0000 (Tue, 05 Jan 2010)
New Revision: 627
Modified:
trunk/piuparts.py
Log:
exit with errorcode 1 if called as non root
Modified: trunk/piuparts.py
===================================================================
--- trunk/piuparts.py 2010-01-05 15:29:50 UTC (rev 626)
+++ trunk/piuparts.py 2010-01-05 15:38:25 UTC (rev 627)
@@ -2072,7 +2072,7 @@
# check if user has root privileges
if os.getuid():
print 'You need to be root to use piuparts.'
- sys.exit(0)
+ sys.exit(1)
logging.info("-" * 78)
logging.info("To quickly glance what went wrong, scroll down to the bottom of this logfile.")
More information about the Piuparts-commits
mailing list