diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-04 15:46:56 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-04 15:46:56 +0000 |
commit | 71146812d733fdc46abe1d77b7d68f9859cdc124 (patch) | |
tree | 74b8163aa9f83039401375462b4a3b3b8f3fc0cc /lib | |
parent | 16661d2a7ced798f3dec7a52759ab6840911cba4 (diff) | |
download | drakiso-71146812d733fdc46abe1d77b7d68f9859cdc124.tar drakiso-71146812d733fdc46abe1d77b7d68f9859cdc124.tar.gz drakiso-71146812d733fdc46abe1d77b7d68f9859cdc124.tar.bz2 drakiso-71146812d733fdc46abe1d77b7d68f9859cdc124.tar.xz drakiso-71146812d733fdc46abe1d77b7d68f9859cdc124.zip |
Remove unnecessary cwd change.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MGA/DrakISO/BuildLoop.pm | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/MGA/DrakISO/BuildLoop.pm b/lib/MGA/DrakISO/BuildLoop.pm index 3722644..a16ecd8 100644 --- a/lib/MGA/DrakISO/BuildLoop.pm +++ b/lib/MGA/DrakISO/BuildLoop.pm @@ -98,14 +98,11 @@ sub expand_file_list { sub hardlink_filtered { my ($src, $dest, $files) = @_; mkdir_p($dest); - my $pwd = $ENV{PWD}; - chdir($src); my $list_file = tmpnam(); output_p($list_file, map { "$_\n" } grep { -e $src . $_ } @$files); #- cpio -pldm won't copy recursively, use rsync -r instead system('rsync', '-ar', '--files-from=' . $list_file, '--link-dest=' . $src, $src, $dest); unlink $list_file; - chdir($pwd); } sub list_loopback_modules { |