Eric Wong  committed 6e33101

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 <>
Signed-off-by: Martin Langhoff <>

  • Participants
  • Parent commits 3e525e6
  • Branches master

Comments (0)

Files changed (1)

File git-archimport.perl

     # skip Arch control files, unescape pika-escaped files
     foreach my $k (keys %want_headers) {
         next unless (defined $ps->{$k});
-        my @tmp;
+        my @tmp = ();
         foreach my $t (@{$ps->{$k}}) {
            next unless length ($t);
            next if $t =~ m!\{arch\}/!;
            push @tmp, $t;
-        $ps->{$k} = \@tmp if scalar @tmp;
+        $ps->{$k} = \@tmp;