Package: mupdf-tools Version: 1.5-1 Severity: important Tags: patch Control: found -1 1.6-1
Hi, pdfclean_main returns 0 on error and 1 if everything went right, which is the wrong thing entirely and confuses scripts (or Makefiles) using it since they think it failed. This should be fixed with: diff --git a/source/tools/pdfclean.c b/source/tools/pdfclean.c index d7d5ac9..3aa46fe 100644 --- a/source/tools/pdfclean.c +++ b/source/tools/pdfclean.c @@ -312,5 +312,5 @@ int pdfclean_main(int argc, char **argv) } fz_free_context(ctx); - return errors == 0; + return !!errors; } Cheers, Julien -- System Information: Debian Release: 8.0 APT prefers testing-updates APT policy: (990, 'testing-updates'), (990, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mupdf-tools depends on: ii libc6 2.19-17 ii libfreetype6 2.5.2-3 ii libjbig2dec0 0.11+20120125-1 ii libjpeg62-turbo 1:1.3.1-12 ii libopenjp2-7 2.1.0-2 ii libssl1.0.0 1.0.1k-3 ii zlib1g 1:1.2.8.dfsg-2+b1 mupdf-tools recommends no packages. mupdf-tools suggests no packages. -- no debconf information -- Julien Cristau <julien.cris...@logilab.fr> Logilab http://www.logilab.fr/ Informatique scientifique & gestion de connaissances -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org