From c308502834119ac1acd09c37642a5291479d9684 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 15 Apr 2002 13:25:20 +0000 Subject: fixed with NIS and packdrake --extract. --- packdrake.pm | 4 ++-- rpmtools.spec | 6 +++++- 2 files changed, 7 insertions(+), 3 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] ]; diff --git a/rpmtools.spec b/rpmtools.spec index 281db2c..216f004 100644 --- a/rpmtools.spec +++ b/rpmtools.spec @@ -1,5 +1,5 @@ %define name rpmtools -%define release 10mdk +%define release 11mdk # do not modify here, see Makefile in the CVS %define version 4.2 @@ -53,6 +53,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/perl5/man/*/* %changelog +* Mon Apr 15 2002 François Pons 4.2-11mdk +- fixed lock using packdrake --extract when current working + directory is on NIS and inaccessible (for root). + * Wed Apr 10 2002 François Pons 4.2-10mdk - make .pm file compatible with perl 5.005 and above (instead of perl 5.6.0 and above). -- cgit v1.2.1