summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO/BuildRoot.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-01-14 12:47:38 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-01-14 22:41:40 +0000
commita2123c15a7551b1824d58b2fbe7b1dc1edf12f59 (patch)
tree87789676fd41a519174a4a7241f966e27f6fb386 /lib/MGA/DrakISO/BuildRoot.pm
parent2a7978ae5c95dbd240b8527585f72d629c8d9ac4 (diff)
downloaddrakiso-a2123c15a7551b1824d58b2fbe7b1dc1edf12f59.tar
drakiso-a2123c15a7551b1824d58b2fbe7b1dc1edf12f59.tar.gz
drakiso-a2123c15a7551b1824d58b2fbe7b1dc1edf12f59.tar.bz2
drakiso-a2123c15a7551b1824d58b2fbe7b1dc1edf12f59.tar.xz
drakiso-a2123c15a7551b1824d58b2fbe7b1dc1edf12f59.zip
Restore check for file existence when cleaning system config files.
The check needs to be run as root, so we have to do it the hard way.
Diffstat (limited to 'lib/MGA/DrakISO/BuildRoot.pm')
-rw-r--r--lib/MGA/DrakISO/BuildRoot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm
index 177d5af..cc47bd1 100644
--- a/lib/MGA/DrakISO/BuildRoot.pm
+++ b/lib/MGA/DrakISO/BuildRoot.pm
@@ -651,7 +651,7 @@ sub configure_draklive_resize {
sub clean_system_conf_file {
my ($file) = @_;
- run_as_root('sed', '-i', '/^[^#]/d', $file);
+ run_as_root('sed', '-i', '/^[^#]/d', $file) if run_as_root('test', '-e', $file);
}
sub write_dist_lists {