aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-04 07:42:01 +0000
committerOlivier Blin <blino@mageia.org>2010-11-04 07:42:01 +0000
commit02ba1840e687c3355051f7180d0793d23e5e628d (patch)
tree0fd031867871d36371070ae8e7dbeecd19da8de7 /lib
parent45be4cf2694eea4cdf24ffd0089b2d9d0c8048c7 (diff)
downloadiurt-02ba1840e687c3355051f7180d0793d23e5e628d.tar
iurt-02ba1840e687c3355051f7180d0793d23e5e628d.tar.gz
iurt-02ba1840e687c3355051f7180d0793d23e5e628d.tar.bz2
iurt-02ba1840e687c3355051f7180d0793d23e5e628d.tar.xz
iurt-02ba1840e687c3355051f7180d0793d23e5e628d.zip
add support for iurt_root_command in perform_command
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Process.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm
index 7dc4898..e7e1a5d 100644
--- a/lib/Iurt/Process.pm
+++ b/lib/Iurt/Process.pm
@@ -108,6 +108,11 @@ sub perform_command {
plog('DEBUG', "Using timeout of $opt{timeout} seconds.");
+ if ($opt{use_iurt_root_command}) {
+ my ($binary, $args) = $command =~ /^(\S*)(.*)$/;
+ $command = "$sudo $config->{iurt_root_command} --$binary $args";
+ }
+
my ($output, $fulloutput, $comment);
my ($kill, $pipe);