diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-14 00:51:11 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-14 22:41:25 +0000 |
commit | eaecbddb48f27a6933761128ceba5e368492b3ea (patch) | |
tree | 57aa610b41d5c11201ce5950859d8c6131e10b86 /lib/MGA/DrakISO/BuildRoot.pm | |
parent | 48d2b18bf88860cd458864e364e8f1c1f1127ebf (diff) | |
download | drakiso-eaecbddb48f27a6933761128ceba5e368492b3ea.tar drakiso-eaecbddb48f27a6933761128ceba5e368492b3ea.tar.gz drakiso-eaecbddb48f27a6933761128ceba5e368492b3ea.tar.bz2 drakiso-eaecbddb48f27a6933761128ceba5e368492b3ea.tar.xz drakiso-eaecbddb48f27a6933761128ceba5e368492b3ea.zip |
draklive: ensure urpmi config is fully cleaned.
Diffstat (limited to 'lib/MGA/DrakISO/BuildRoot.pm')
-rw-r--r-- | lib/MGA/DrakISO/BuildRoot.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm index 9646508..903a65e 100644 --- a/lib/MGA/DrakISO/BuildRoot.pm +++ b/lib/MGA/DrakISO/BuildRoot.pm @@ -377,6 +377,7 @@ sub build_local_repo { my $base_repository = $build->{settings}{repository}; my $arch_repository = $base_repository . '/' . $arch; my $i586_repository = $base_repository . '/' . 'i586'; + run_as_root('sed', '-i', "s!/tmp/image!$arch_repository!", glob($root . '/etc/urpmi/mediacfg.d/*/url')); run_as_root('sed', '-i', "s!/tmp/image!$arch_repository!", $root . '/etc/urpmi/urpmi.cfg'); run_as_root('sed', '-i', "s!/tmp/i586!$i586_repository!", $root . '/etc/urpmi/urpmi.cfg') if $arch eq 'x86_64'; |