fix importing of subversion tars

add a / between the prefix and name fields of the tar archive if prefix
is non-empty.

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Uwe Kleine-König 2007-04-24 13:51:04 +02:00 committed by Shawn O. Pearce
parent a5c1780a03
commit 46f6178a3f

View File

@ -64,7 +64,12 @@ foreach my $tar_file (@ARGV)
}
print FI "\n";
my $path = "$prefix$name";
my $path;
if ($prefix) {
$path = "$prefix/$name";
} else {
$path = "$name";
}
$files{$path} = [$next_mark++, $mode];
$commit_time = $mtime if $mtime > $commit_time;