]> git.donarmstrong.com Git - debbugs.git/commitdiff
allow multiple versions in an architecture (but really only for source)
authorDon Armstrong <don@donarmstrong.com>
Mon, 27 Feb 2012 23:59:58 +0000 (15:59 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 27 Feb 2012 23:59:58 +0000 (15:59 -0800)
examples/debian/versions/build-mldbm.pl

index f8bc3c2eca580e319b74a57ba92c73a5fe3b3c4b..9bcf44b366bf3001ae817fa84a3788481aa0b8d5 100755 (executable)
@@ -25,7 +25,9 @@ while (<>) {
     elsif (/^$/) {
        # see MLDBM(3pm)/BUGS
        my $tmp = $db{$p};
-       $tmp->{$dist}{$arch} = $v;
+       # we allow multiple versions in an architecture now; this
+       # should really only happen in the case of source, however.
+       push @{$tmp->{$dist}{$arch}}, $v;
        $db{$p} = $tmp;
        $tmp = $db2{$p};
        $tmp->{$dist}{$arch}{$v} = $time if not exists