summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-11-30 13:56:43 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-11-30 13:56:43 +0000
commit5b064eba588ce091f942c9379310ad2fca40b7c2 (patch)
treedd52657b5498e44e9140c5f058df878613c9c083
parent860fdd6b11d2863439160cd5b638f219612c9589 (diff)
downloaddrakx-backup-do-not-use-5b064eba588ce091f942c9379310ad2fca40b7c2.tar
drakx-backup-do-not-use-5b064eba588ce091f942c9379310ad2fca40b7c2.tar.gz
drakx-backup-do-not-use-5b064eba588ce091f942c9379310ad2fca40b7c2.tar.bz2
drakx-backup-do-not-use-5b064eba588ce091f942c9379310ad2fca40b7c2.tar.xz
drakx-backup-do-not-use-5b064eba588ce091f942c9379310ad2fca40b7c2.zip
use ::prefix when removing unneeded packages
This is necessary for draklive-install on the Flash which does not copy / to the hard disk but a subdirectory. If we don't take ::prefix into account, we won't clean what we are about to install but the currently running system.
-rw-r--r--perl-install/NEWS4
-rw-r--r--perl-install/pkgs.pm2
2 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 5850afa35..63b85dd61 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,7 @@
+Version 12.77.2 - 30 November 2009
+
+- bugfix for draklive-install: use ::prefix in pkgs::remove_unused_packages
+
Version 12.77.1 - 18 November 2009
- bootloader-config:
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 057fcec78..a0419858b 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -279,7 +279,7 @@ sub remove_unused_packages {
#- we should have some gurpme
$wait = $in->wait_message(N("Please wait"), N("Removing packages..."));
- run_program::run('urpme', '--auto',
+ run_program::rooted($::prefix, 'urpme', '--auto',
if_($hardware, @unused_hardware_packages),
if_($locales, @unselected_locales),
);