aboutsummaryrefslogtreecommitdiffstats
path: root/packdrake.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-04-15 13:25:20 +0000
committerFrancois Pons <fpons@mandriva.com>2002-04-15 13:25:20 +0000
commitc308502834119ac1acd09c37642a5291479d9684 (patch)
treeb5f869b9e1d9f6b5436c54833fed1b66d113b147 /packdrake.pm
parent552c8db48d48fd34cb59770d3f689bf4f1aefc22 (diff)
downloadrpmtools-c308502834119ac1acd09c37642a5291479d9684.tar
rpmtools-c308502834119ac1acd09c37642a5291479d9684.tar.gz
rpmtools-c308502834119ac1acd09c37642a5291479d9684.tar.bz2
rpmtools-c308502834119ac1acd09c37642a5291479d9684.tar.xz
rpmtools-c308502834119ac1acd09c37642a5291479d9684.zip
fixed with NIS and packdrake --extract.
Diffstat (limited to 'packdrake.pm')
-rw-r--r--packdrake.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/packdrake.pm b/packdrake.pm
index de22f9b..d4c26e0 100644
--- a/packdrake.pm
+++ b/packdrake.pm
@@ -373,8 +373,8 @@ sub extract_archive {
$packer->{log}->("extracting $file");
for ($packer->{data}{$file}[0]) {
/l/ && do { symlink_ $packer->{data}{$file}[1], $newfile; last; };
- /d/ && do { mkdir_ $newfile; last; };
- /f/ && do { mkdir_ dirname $newfile;
+ /d/ && do { $dir and mkdir_ $newfile; last; };
+ /f/ && do { $dir and mkdir_ dirname $newfile;
my $data = $packer->{data}{$file};
$extract_table{$data->[1]} ||= [ $data->[2], [] ];
push @{$extract_table{$data->[1]}[1]}, [ $newfile, $data->[3], $data->[4] ];