summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpme4
-rwxr-xr-xurpmi.addmedia3
-rwxr-xr-xurpmi.removemedia3
-rwxr-xr-xurpmi.update3
4 files changed, 12 insertions, 1 deletions
diff --git a/urpme b/urpme
index 472f3302..991bb712 100644
--- a/urpme
+++ b/urpme
@@ -19,12 +19,14 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#We only make good software ;-)
use strict;
use urpm;
use urpm::args;
use urpm::msg;
+$ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
+delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
+
our ($root, $test, $parallel, $auto, $matches, $verbose, $maymatch, $usedistrib, $force, @l);
my $askok = N("Is this OK?");
# Translator: Add here the keys which might be pressed in the "No"-case.
diff --git a/urpmi.addmedia b/urpmi.addmedia
index cfb3321b..a866902b 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -88,6 +88,9 @@ sub remove_failed {
}
}
+$ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
+delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
+
#- parse /etc/urpmi/mirror.config if present, or use default mdk mirror.
#- the --from option overrides this setting.
if ($options{mirrors_url}) {
diff --git a/urpmi.removemedia b/urpmi.removemedia
index 4c8795cd..3d3d273c 100755
--- a/urpmi.removemedia
+++ b/urpmi.removemedia
@@ -24,6 +24,9 @@ use strict;
use urpm;
use urpm::msg;
+$ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
+delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
+
sub main {
my (@toremoves, %options);
diff --git a/urpmi.update b/urpmi.update
index 1c52e5af..9504f08a 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -50,6 +50,9 @@ where <name> is a medium name to update.
exit 0;
}
+$ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
+delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
+
our @toupdates; #- set by urpm::args
my $urpm = new urpm;