From 6802cd4dd3295379a1821a892078e97885e7f221 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 17 Feb 2002 20:34:32 +0000 Subject: do not use run_program::xxx, use directly "system" so that stdout is kept unchanged during "postInstall" execution --- perl-install/install2.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/install2.pm') diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 392a502f3..e810dedee 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -599,8 +599,9 @@ sub main { modules::write_conf($o->{prefix}); #- mainly for auto_install's - run_program::run("bash", "-c", $o->{postInstallNonRooted}) if $o->{postInstallNonRooted}; - run_program::rooted($o->{prefix}, "sh", "-c", $o->{postInstall}) if $o->{postInstall}; + #- do not use run_program::xxx because it doesn't leave stdin/stdout unchanged + system("bash", "-c", $o->{postInstallNonRooted}) if $o->{postInstallNonRooted}; + system("chroot", $o->{prefix}, "bash", "-c", $o->{postInstall}) if $o->{postInstall}; install_any::ejectCdrom(); -- cgit v1.2.1