[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.6-10-gca6d2c9
Ritesh Raj Sarraf
rrs at researchut.com
Fri Jan 22 19:34:54 UTC 2010
The following commit has been merged in the master branch:
commit ab733e38aad16b7d100c44e438af26339c16a50b
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date: Sat Jan 23 00:32:38 2010 +0530
Just simulate
The `apt-get update` command is supposed to do a lot of things apart
from downloading the URIs. Thus we should instead simulate the run.
diff --git a/AptOfflineCoreLib.py b/AptOfflineCoreLib.py
index 4eea6c7..7a4f7d3 100644
--- a/AptOfflineCoreLib.py
+++ b/AptOfflineCoreLib.py
@@ -1319,7 +1319,7 @@ def setter(args):
old_environ = "C"
os.environ['LANG'] = "C"
log.verbose( "Set environment variable for LANG from %s to %s temporarily.\n" % ( old_environ, os.environ['LANG'] ) )
- if os.system( '/usr/bin/apt-get -qq --print-uris update >> $__apt_set_update' ) != 0:
+ if os.system( '/usr/bin/apt-get -qq --print-uris --simulate update >> $__apt_set_update' ) != 0:
log.err( "FATAL: Something is wrong with the apt system.\n" )
log.verbose( "Set environment variable for LANG back to its original from %s to %s.\n" % ( os.environ['LANG'], old_environ ) )
os.environ['LANG'] = old_environ
--
Offline APT Package Manager
More information about the Apt-offline-devel
mailing list