[buildd-tools-devel] Bug#743773: sbuild: Sort output of package content listing

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Sun Apr 6 09:18:39 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20140406/fa73d447/attachment.sig>


More information about the Buildd-tools-devel mailing list