commit: d62c08a0cee1409e8e1206bf67e1703e19e1b6b8
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 14 19:26:36 2014 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Tue Oct 14 19:32:20 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=d62c08a0
config.py: Adds more thorough checking for setting self.work
---
WebappConfig/config.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index acf7b7a..99ccedd 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -582,7 +582,7 @@ class Config:
info_opts.add_argument('-li',
'--list-installs',
- action='store_true',
+ nargs = 2,
help = 'List all current virtual installs for
<a'
'pplication>. Use * for the package name and/or
'
'version number to list more than one package /
'
@@ -966,7 +966,7 @@ class Config:
sys.exit()
for i in work:
- if options.get(i):
+ if options.get(i) != None and options.get(i) != False:
self.work = i
break