[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.4-13-ge2191dd
Ritesh Raj Sarraf
rrs at researchut.com
Sun Oct 25 16:56:03 UTC 2009
The following commit has been merged in the master branch:
commit d59482a5821cbded7c1afc5b954714a3ab93b799
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date: Sun Oct 25 17:37:00 2009 +0530
call default operation only when no option is provided
diff --git a/AptOfflineCoreLib.py b/AptOfflineCoreLib.py
index 827dc12..63e9a3a 100644
--- a/AptOfflineCoreLib.py
+++ b/AptOfflineCoreLib.py
@@ -1109,6 +1109,7 @@ def installer( args ):
def setter(args):
+ log.verbose(str(args) )
Str_SetArg = args.set
List_SetInstallPackages = args.set_install_packages
List_SetInstallSrcPackages = args.set_install_src_packages
@@ -1117,14 +1118,17 @@ def setter(args):
Bool_SetUpgrade = args.set_upgrade
Str_SetUpgradeType = args.upgrade_type
+ if Bool_SetUpdate is False and Bool_SetUpgrade is False and List_SetInstallPackages is None \
+ and List_SetInstallSrcPackages is None:
+ Default_Operation = True
+ else:
+ Default_Operation = False
+
#INFO: Don't run the default behavior, of SetUpdate and SetUpgrade, if the
# user requests only for Package Installs
- if Bool_SetUpdate is False and Bool_SetUpgrade is False:
- if List_SetInstallPackages != None and List_SetInstallPackages != []:
- pass
- else:
- Bool_SetUpdate = True
- Bool_SetUpgrade = True
+ if Default_Operation:
+ Bool_SetUpdate = True
+ Bool_SetUpgrade = True
#FIXME: We'll use python-apt library to make it cleaner.
# For now, we need to set markers using shell variables.
--
Offline APT Package Manager
More information about the Apt-offline-devel
mailing list