@matheusbsbs / matheus-bagliano / commits / 6e33101abd
Fork 0

archimport: Fix a bug I introduced in the new log parser

This fixes the case (that worked originally in Martin's version) where the only new/modified files are Arch control files. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>

Eric Wong committed Nov 23, 2005 at 23:56 UTC 6e33101abd82f38393b8f2a137601add845722f7
1 file changed +2 -2
git-archimport.perl
+2 -2
@@ -790,7 +790,7 @@ sub parselog {
790 # skip Arch control files, unescape pika-escaped files
791 foreach my $k (keys %want_headers) {
792 next unless (defined $ps->{$k});
793 - my @tmp;
793 + my @tmp = ();
794 foreach my $t (@{$ps->{$k}}) {
795 next unless length ($t);
796 next if $t =~ m!\{arch\}/!;
@@ -804,7 +804,7 @@ sub parselog {
804 }
805 push @tmp, $t;
806 }
807 - $ps->{$k} = \@tmp if scalar @tmp;
807 + $ps->{$k} = \@tmp;
808 }
809 }
810