summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-01-14 21:46:58 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-01-14 22:41:49 +0000
commit19c6dd6538b071b90e75946531bb72f90c2f600d (patch)
tree222cd6e45d14a9c2cb43ee1992b004cf79c799e0 /lib
parentdab0679980e89cbcc337bc418b9530633cca8a3f (diff)
downloaddrakiso-19c6dd6538b071b90e75946531bb72f90c2f600d.tar
drakiso-19c6dd6538b071b90e75946531bb72f90c2f600d.tar.gz
drakiso-19c6dd6538b071b90e75946531bb72f90c2f600d.tar.bz2
drakiso-19c6dd6538b071b90e75946531bb72f90c2f600d.tar.xz
drakiso-19c6dd6538b071b90e75946531bb72f90c2f600d.zip
Another file existence check that needs to be run as root.
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/DrakISO/Loopback.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MGA/DrakISO/Loopback.pm b/lib/MGA/DrakISO/Loopback.pm
index f613915..cf127c2 100644
--- a/lib/MGA/DrakISO/Loopback.pm
+++ b/lib/MGA/DrakISO/Loopback.pm
@@ -57,7 +57,7 @@ our %loop_types;
my $total = directory_usage($src);
print "Have to process " . int($total/1000000) . " MB\n" if $::verbose;
my $exclude_file = tmpnam();
- output_p($exclude_file, map { $root . "$_\n" } grep { -e $root . $_ } @{$dir->{exclude} || []});
+ output_p($exclude_file, map { $root . "$_\n" } grep { run_as_root('test', '-e', $root . $_) } @{$dir->{exclude} || []});
my $sort = $build->{settings}{config_root} . '/' . $dir->{sort};
my $squashfs4_comp = best_squashfs4_compression($build);
run_as_root(join(' ',