From 6ef9708ef633c12d9702e8b31e579e1cf5dd02b1 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 22 Feb 2001 14:21:39 +0000 Subject: (main): don't set a special $remote_path PATH for postInstallNonRooted (otherwise install's modprobe is not used, and you can't "modprobe vfat", even if "/usr/bin/modprobe vfat" doesn't work because insmod_ is not found. --- perl-install/install2.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 13a8c96f1..741ff15b8 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -611,8 +611,7 @@ sub main { -e "$o->{prefix}/usr/bin/urpmi" or eval { commands::rm("-rf", "$o->{prefix}/var/lib/urpmi") }; #- mainly for auto_install's - do { local $ENV{PATH} = $remote_path; - run_program::run("bash", "-c", $o->{postInstallNonRooted}) } if $o->{postInstallNonRooted}; + run_program::run("bash", "-c", $o->{postInstallNonRooted}) if $o->{postInstallNonRooted}; run_program::rooted($o->{prefix}, "sh", "-c", $o->{postInstall}) if $o->{postInstall}; #- have the really bleeding edge ddebug.log -- cgit v1.2.1