summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-05-16 23:54:16 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-06-19 15:52:10 -0400
commitf65ecf2f00848079cda820d2de65152b29129033 (patch)
treee75d2fd6a37da5d568c730e7da3da624d9201b3f
parentdb.py: Reverts OUT.info() call to print() in listinstalls() (diff)
downloadwebapp-config-f65ecf2f00848079cda820d2de65152b29129033.tar.gz
webapp-config-f65ecf2f00848079cda820d2de65152b29129033.tar.bz2
webapp-config-f65ecf2f00848079cda820d2de65152b29129033.zip
config.py: Suppresses warning message for lack of -d flag for --query
-rw-r--r--WebappConfig/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index ab19ee3..cb9d552 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -1013,7 +1013,8 @@ class Config:
pvr += argsvr[i]
self.config.set('USER', 'pvr', pvr)
- if not options['dir'] and self.work != 'list_installs':
+ if (not options['dir'] and
+ self.work not in ('list_installs', 'query')):
pn = self.config.get('USER', 'pn')
msg = 'Install dir flag not supplied, defaulting to '\
'"%(pn)s".' % {'pn': pn}