aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-05-18 22:55:10 +0000
committerPascal Terjan <pterjan@mageia.org>2011-05-18 22:55:10 +0000
commit6dfcbfce91d7f1e332637c7421b827ba8e7bc405 (patch)
tree08f48b4e53fc7863d65ae90e4c4e80aaa2085614 /lib/Iurt/Chroot.pm
parent35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235 (diff)
downloadiurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar
iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar.gz
iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar.bz2
iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar.xz
iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.zip
Allow giving additional macros to iurt
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index b7b2f3b..b85e7b5 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -164,7 +164,9 @@ sub dump_rpmmacros {
\%_tmppath \%(echo \$HOME)/rpm/tmp/
\%distribution $config->{distribution}
\%vendor $config->{vendor}
-\%packager $packager);
+\%packager $packager
+);
+ print $f join "\n", @{$run->{rpmmacros}} if defined $run->{rpmmacros};
close $f;
my $ret = sudo($run, $config, '--cp', $tmpfile, $file);