diff options
author | Till Maas <opensource@till.name> | 2009-07-18 15:25:09 +0200 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2009-07-18 15:25:09 +0200 |
commit | 65249ea1fe243bddfa7c89ef877396cf5bb19d3a (patch) | |
tree | f0d9b6743821e372974a0cad7153ce261d437f32 /cnucnu.py | |
parent | b5a958ce802efe524cf48b698bf567e955244bcc (diff) | |
download | cnucnu-65249ea1fe243bddfa7c89ef877396cf5bb19d3a.tar.gz cnucnu-65249ea1fe243bddfa7c89ef877396cf5bb19d3a.tar.xz cnucnu-65249ea1fe243bddfa7c89ef877396cf5bb19d3a.zip |
make --shell (former --check) work without config
Diffstat (limited to 'cnucnu.py')
-rwxr-xr-x | cnucnu.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -78,7 +78,7 @@ if __name__ == '__main__': from optparse import OptionParser parser = OptionParser() - parser.add_option("", "--check", dest="action", help="check URL and regex interactively", action="store_const", const="check") + parser.add_option("", "--shell", dest="action", help="Interactive shell", action="store_const", const="shell") parser.add_option("", "--config", dest="config_filename", help="config_filename, e.g. for bugzilla credentials", default="./cnucnu.ini") parser.add_option("", "--create-bugs", dest="action", help="file bugs for outdated packages", action="store_const", const="create-bugs") parser.add_option("", "--fm-outdated-all", dest="action", help="compare all packages in rawhide with freshmeat", action="store_const", const="fm-outdated-all") @@ -86,7 +86,7 @@ if __name__ == '__main__': (options, args) = parser.parse_args() conf = config.Config(options.config_filename) - if options.action == "check": + if options.action == "shell": shell = CheckShell(config=conf) while True: try: @@ -97,7 +97,7 @@ if __name__ == '__main__': print repr(ex) break elif options.action == "create-bugs": - bugzilla_config = conf.get_bugzilla_config() + bugzilla_config = conf.bugzilla_config br = BugzillaReporter(**bugzilla_config) pl = PackageList() |