aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorvolpino <fox91@anche.no>2012-06-08 14:43:18 +0200
committervolpino <fox91@anche.no>2012-06-08 14:43:18 +0200
commitb43bf8fa2857901efb3394109ebc545edafb38c1 (patch)
tree6657483bedf4b8d1da00dab792dd89569ca21da0 /bin
parenteuscanwww: Fixed the upstream task that was completely broken (diff)
downloadeuscan-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-xbin/euscan21
1 files changed, 5 insertions, 16 deletions
diff --git a/bin/euscan b/bin/euscan
index 907902a..7bea5bd 100755
--- a/bin/euscan
+++ b/bin/euscan
@@ -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)