Update of /cvsroot/compbench/compbenchmarks-web/tools
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21977
Modified Files:
compbenchmarks-import-file.pl
Log Message:
Fixes possible bug on tar xzvf when LT_TMP_DIR is not absolute.
Index: compbenchmarks-import-file.pl
===================================================================
RCS file: /cvsroot/compbench/compbenchmarks-web/tools/compbenchmarks-import-file.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** compbenchmarks-import-file.pl 26 Sep 2006 20:39:44 -0000 1.17
--- compbenchmarks-import-file.pl 4 Oct 2006 15:32:42 -0000 1.18
***************
*** 285,291 ****
exit(1);
}
!
$tarball_absolute_name=$tarball;
! $cmd="cd $LT_TMP_DIR && mkdir $current_dir && cd $current_dir && tar xzvf $tarball_absolute_name";
`$cmd`;
if ($? != 0) {
--- 285,291 ----
exit(1);
}
!
$tarball_absolute_name=$tarball;
! $cmd="cd $LT_TMP_DIR && mkdir $current_dir && tar xzvf $tarball_absolute_name -C $current_dir";
`$cmd`;
if ($? != 0) {
***************
*** 293,297 ****
exit(1);
}
!
my $arch_dir = "$LT_TMP_DIR/$current_dir";
import_check_file("$arch_dir/index.txt");
--- 293,297 ----
exit(1);
}
!
my $arch_dir = "$LT_TMP_DIR/$current_dir";
import_check_file("$arch_dir/index.txt");
|