summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO/Config.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 22:02:04 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 22:02:04 +0000
commit9755f9276dc237907104b91198de99d625e3c607 (patch)
treecbaac7d335ba412601293a339bf6cc40c666d499 /lib/MGA/DrakISO/Config.pm
parent55c2e86d0fa97b4182bba4a43eecc076f7cce3ff (diff)
downloaddrakiso-9755f9276dc237907104b91198de99d625e3c607.tar
drakiso-9755f9276dc237907104b91198de99d625e3c607.tar.gz
drakiso-9755f9276dc237907104b91198de99d625e3c607.tar.bz2
drakiso-9755f9276dc237907104b91198de99d625e3c607.tar.xz
drakiso-9755f9276dc237907104b91198de99d625e3c607.zip
Use a single working directory specified by the user.
By adding the 'chroot' and 'build' subdirectory names ourself, we can make the clean operation a bit safer.
Diffstat (limited to 'lib/MGA/DrakISO/Config.pm')
-rw-r--r--lib/MGA/DrakISO/Config.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/Config.pm b/lib/MGA/DrakISO/Config.pm
index 2d7de1f..ce7df67 100644
--- a/lib/MGA/DrakISO/Config.pm
+++ b/lib/MGA/DrakISO/Config.pm
@@ -72,8 +72,7 @@ sub check_config {
sub complete_config {
my ($build) = @_;
- $build->{settings}{builddir} ||= '/var/lib/drakiso/build';
- $build->{settings}{chroot} ||= '/var/lib/drakiso/chroot';
+ $build->{settings}{workdir} ||= '/var/lib/drakiso';
$build->{settings}{arch} ||= chomp_(`rpm --eval '%{_target_cpu}'`);