projects
/
tools
/
pristine-tar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c414f51
)
fix bug if input filename contains a path
author
Joey Hess
<joey@kitenet.net>
Mon, 13 Apr 2009 23:28:24 +0000
(19:28 -0400)
committer
Joey Hess
<joey@kitenet.net>
Mon, 13 Apr 2009 23:28:24 +0000
(19:28 -0400)
pristine-gz
patch
|
blob
|
history
diff --git
a/pristine-gz
b/pristine-gz
index
f0e79a1
..
c2932ee
100755
(executable)
--- a/
pristine-gz
+++ b/
pristine-gz
@@
-392,8
+392,9
@@
sub gengz {
push @zgz, "-c";
if (-e "$tempdir/delta") {
- doit_redir($file, "$tempdir/$file.gz", @zgz);
- doit("xdelta", "patch", "--pristine", "$tempdir/delta", "$tempdir/$file.gz", "$file.gz");
+ my $tfile="$tempdir/".basename($file).".gz";
+ doit_redir($file, $tfile, @zgz);
+ doit("xdelta", "patch", "--pristine", "$tempdir/delta", $tfile, "$file.gz");
}
else {
doit_redir("$file", "$file.gz", @zgz);