Package: sbuild
Version: 0.63.2-1.1
Severity: wishlist
Tags: patch

Dear Maintainer,

in order to ease comparison of build log, it was helpful to sort the
output of "dpkg --contents". Time stamps and file sizes still differ
but sensible diff programs like xxdiff or fldiff can handle that, so
this is already a major improvement.

Patch is really simple, see below.

    Christoph

--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -1691,7 +1691,7 @@ sub build {
                close( PIPE );
            }
            $self->log("\n");
-           if (!open( PIPE, "dpkg --contents $deb 2>&1 |" )) {
+           if (!open( PIPE, "dpkg --contents $deb 2>&1 | sort -k6 |" )) {
                $self->log("Can't spawn dpkg: $! -- can't dump info\n");
            }
            else {


-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10.34 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Attachment: signature.asc
Description: Digital signature

Reply via email to