summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-17 20:34:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-17 20:34:32 +0000
commit6802cd4dd3295379a1821a892078e97885e7f221 (patch)
tree02d2b0c2415b51307b6040f498508b5e24ee4229 /perl-install
parent02b5f29515f1164497816d55184824d1426b0c63 (diff)
downloaddrakx-6802cd4dd3295379a1821a892078e97885e7f221.tar
drakx-6802cd4dd3295379a1821a892078e97885e7f221.tar.gz
drakx-6802cd4dd3295379a1821a892078e97885e7f221.tar.bz2
drakx-6802cd4dd3295379a1821a892078e97885e7f221.tar.xz
drakx-6802cd4dd3295379a1821a892078e97885e7f221.zip
do not use run_program::xxx, use directly "system" so that stdout is kept unchanged during "postInstall" execution
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install2.pm5
1 files changed, 3 insertions, 2 deletions
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();