Package: curator
Version: 2.1-9
Severity: normal
Tags: patch

When the -q or --quiet option is specified then due to a unguarded print 
at line 743, curator prints a lot of blank lines.

Also when checking for InageMagick tools, block after line 432, 
the comment must say that the program will exit (and may be 
change the WARNING at line 435 to Error ?).

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages curator depends on:
ii  imagemagick            7:6.2.4.5.dfsg1-1 Image manipulation programs
ii  python                 2.4.4-6           An interactive high-level object-o
ii  python-imaging         1.1.6-1           Python Imaging Library

curator recommends no packages.

-- no debconf information
diff -Nabur curator-2.1.orig/bin/curator curator-2.1/bin/curator
--- curator-2.1.orig/bin/curator        2007-06-09 16:03:37.000000000 +0300
+++ curator-2.1/bin/curator     2007-06-09 16:10:18.000000000 +0300
@@ -429,7 +429,7 @@
 
         prg = normpath( prg )
 
-        # Issue a warning if we can't find the ImageMagick tools
+        # Issue a warning and exit if we can't find the ImageMagick tools
         if not exists( prg ) and not exists( prg + '.exe' ):
             print >> sys.stderr,\
                       "WARNING: can't stat ImageMagick program %s" % prg
@@ -740,7 +740,7 @@
             e.cleanAlts()
             if not e.selectName( joinpath( root, path ) ):
                 del imgmap[i]
-            print
+            if opts.quiet: print
 
         for f in imgmap.keys():
             img = imgmap[f]

Reply via email to