summaryrefslogtreecommitdiffstats
path: root/mgaapplet-upgrade-helper
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-10-13 08:23:40 +0200
committerPapoteur <papoteur@mageia.org>2023-10-13 08:23:40 +0200
commit91243db8eebb41f6a3dfa03b05b979b2fe237fc9 (patch)
tree4ad36a209df902bcd83f7497817845b839291320 /mgaapplet-upgrade-helper
parent71f37c13ed6e048475dae21823b3f52f651d6293 (diff)
downloadmgaonline-91243db8eebb41f6a3dfa03b05b979b2fe237fc9.tar
mgaonline-91243db8eebb41f6a3dfa03b05b979b2fe237fc9.tar.gz
mgaonline-91243db8eebb41f6a3dfa03b05b979b2fe237fc9.tar.bz2
mgaonline-91243db8eebb41f6a3dfa03b05b979b2fe237fc9.tar.xz
mgaonline-91243db8eebb41f6a3dfa03b05b979b2fe237fc9.zip
- don't rely on PATH to choose urpmi.update in sbin or bin (mga#32354)
Diffstat (limited to 'mgaapplet-upgrade-helper')
-rwxr-xr-xmgaapplet-upgrade-helper4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper
index d0e1d8f4..dac61180 100755
--- a/mgaapplet-upgrade-helper
+++ b/mgaapplet-upgrade-helper
@@ -332,10 +332,10 @@ sub fork_gurpmi {
}
sub update_media() {
- run_program::run('urpmi.update', if_($root, '--urpmi-root', $root), '-a');
+ run_program::run('/usr/bin/urpmi.update', if_($root, '--urpmi-root', $root), '-a');
}
sub enable_media {
my ($repos) = @_;
- run_program::run('urpmi.update', if_($root, '--urpmi-root', $root), '--no-ignore', "$repos Release", "$repos Updates");
+ run_program::run('/usr/bin/urpmi.update', if_($root, '--urpmi-root', $root), '--no-ignore', "$repos Release", "$repos Updates");
}