diff options
author | volpino <fox91@anche.no> | 2012-06-08 14:43:18 +0200 |
---|---|---|
committer | volpino <fox91@anche.no> | 2012-06-08 14:43:18 +0200 |
commit | b43bf8fa2857901efb3394109ebc545edafb38c1 (patch) | |
tree | 6657483bedf4b8d1da00dab792dd89569ca21da0 /bin | |
parent | euscanwww: Fixed the upstream task that was completely broken (diff) | |
download | euscan-b43bf8fa2857901efb3394109ebc545edafb38c1.tar.gz euscan-b43bf8fa2857901efb3394109ebc545edafb38c1.tar.bz2 euscan-b43bf8fa2857901efb3394109ebc545edafb38c1.zip |
euscanwww: Removing duplicated code
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/euscan | 21 |
1 files changed, 5 insertions, 16 deletions
@@ -271,26 +271,15 @@ def main(): output.eerror('%s: %s' % (query, str(err))) exit_helper(1) - if not CONFIG['quiet'] and not CONFIG['format']: - print() - if (CONFIG['format'] or CONFIG['quiet']) and isatty: on_progress_gen.next() print("\n", file=sys.stderr) - if ret is not None: - if len(ret) > 0: - for cp, url, version, handler, confidence in ret: - output.result(cp, version, url, handler, confidence) - - if (CONFIG['format'] or CONFIG['quiet']) and isatty: - print("\n", file=sys.stderr) - - elif not CONFIG['quiet']: - output.ewarn( - "Didn't find any new version, check package's homepage " + - "for more informations" - ) + if not ret and not CONFIG['quiet']: + output.ewarn( + "Didn't find any new version, check package's homepage " + + "for more informations" + ) output.set_query(None) |