[Pypt-offline-general] SF.net SVN: pypt-offline: [170] trunk/pypt_core.py
Status: Beta
Brought to you by:
riteshsarraf
|
From: <rit...@us...> - 2007-08-03 10:07:28
|
Revision: 170
http://pypt-offline.svn.sourceforge.net/pypt-offline/?rev=170&view=rev
Author: riteshsarraf
Date: 2007-08-03 03:07:11 -0700 (Fri, 03 Aug 2007)
Log Message:
-----------
* Minor changes.
Modified Paths:
--------------
trunk/pypt_core.py
Modified: trunk/pypt_core.py
===================================================================
--- trunk/pypt_core.py 2007-08-02 22:20:22 UTC (rev 169)
+++ trunk/pypt_core.py 2007-08-03 10:07:11 UTC (rev 170)
@@ -1223,6 +1223,8 @@
else:
log.err('Incorrect choice. Exiting\n')
sys.exit(1)
+ else:
+ log.verbose("Great!!! No bugs found for all the packages that were downloaded.\n")
elif arg_type == 2:
@@ -1443,16 +1445,20 @@
if options.install_upgrade:
#INFO: Comment these lines to do testing on Windows machines too
- #if os.geteuid() != 0:
- # log.err("\nYou need superuser privileges to execute this option\n")
- # sys.exit(1)
+ try:
+ if os.geteuid() != 0:
+ log.err("\nYou need superuser privileges to execute this option\n")
+ sys.exit(1)
+ except AttributeError:
+ log.err("Are you really running the install command on a Debian box?\n")
+ sys.exit(1)
if os.path.isfile(options.install_upgrade) is True:
syncer(options.install_upgrade, apt_package_target_path, 1)
elif os.path.isdir(options.install_upgrade) is True:
syncer(options.install_upgrade, apt_package_target_path, 2)
else:
log.err("Aieee! %s is unsupported format\n" % (options.install_upgrade))
- sys.exit(0)
+ sys.exit(0)
except KeyboardInterrupt:
log.err("\nInterrupted by user. Exiting!\n")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|