[Pypt-offline-general] SF.net SVN: pypt-offline: [188] trunk/pypt_core.py
Status: Beta
Brought to you by:
riteshsarraf
|
From: <rit...@us...> - 2007-08-17 14:10:43
|
Revision: 188
http://pypt-offline.svn.sourceforge.net/pypt-offline/?rev=188&view=rev
Author: riteshsarraf
Date: 2007-08-17 07:10:46 -0700 (Fri, 17 Aug 2007)
Log Message:
-----------
* The variables need to be referenced as the global variables.
Modified Paths:
--------------
trunk/pypt_core.py
Modified: trunk/pypt_core.py
===================================================================
--- trunk/pypt_core.py 2007-08-17 11:22:40 UTC (rev 187)
+++ trunk/pypt_core.py 2007-08-17 14:10:46 UTC (rev 188)
@@ -74,6 +74,7 @@
pypt_bug_file_format = "__pypt__bug__report"
bugTypes = ["Resolved bugs", "Normal bugs", "Minor bugs", "Wishlist items", "FIXED"]
+
#These are spaces which will overwrite the progressbar left mess
LINE_OVERWRITE_SMALL = " " * 10
LINE_OVERWRITE_MID = " " * 30
@@ -1543,6 +1544,12 @@
log.msg("Copyright %s\n" % (copyright))
log.msg(terminal_license)
+ if options.test_windows:
+ global apt_package_target_path
+ global apt_update_target_path
+ apt_package_target_path = 'C:\\temp'
+ apt_update_target_path = 'C:\\temp'
+
if options.set_update:
if platform.system() in supported_platforms:
if os.geteuid() != 0:
@@ -1661,8 +1668,6 @@
if options.install_update:
if options.test_windows:
- # Dummy paths while testing on Windows
- apt_update_target_path = 'C:\\temp'
pass
else:
try:
@@ -1678,15 +1683,13 @@
syncer(options.install_update, apt_update_target_path, 1, bug_parse_required = False)
elif os.path.isdir(options.install_update) is True:
# We're a directory
- syncer(options.install_update, apt_update_target_path, 1, bug_parse_required = False)
+ syncer(options.install_update, apt_update_target_path, 2, bug_parse_required = False)
else:
log.err("%s file not found\n" % (options.install_update))
sys.exit(1)
if options.install_upgrade:
if options.test_windows:
- # Dummy paths while testing on Windows
- apt_package_target_path = 'C:\\temp'
pass
else:
try:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|