This patch modifies dpkg-scanpackages.pl so that the output is sorted by
package name and package version. This is useful if multiple versions of
the same package are kept together in the same repository.
---
scripts/dpkg-scanpackages.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl
index 8cb8020..faf8ea2 100755
--- a/scripts/dpkg-scanpackages.pl
+++ b/scripts/dpkg-scanpackages.pl
@@ -268,7 +268,7 @@ for my $p (sort keys %packages) {
if (defined($override) and not defined($overridden{$p})) {
push @missingover, $p;
}
- for my $package (@{$packages{$p}}) {
+ for my $package (sort { $a->{Version} cmp $b->{Version} } @{$packages{$p}}) {
print("$package\n") or syserr(g_('failed when writing stdout'));
$records_written++;
}
--
1.9.1
Attachment:
smime.p7s
Description: S/MIME cryptographic signature