summaryrefslogtreecommitdiffstats
path: root/urpm/orphans.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-27 11:39:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-27 11:39:47 +0000
commitbb0fabd2c2bffcf3def2c8c538921305d09ec298 (patch)
tree5eebe0255014a1d1a9950098902fd990dcdee2ad /urpm/orphans.pm
parentb494812daced7acbb49aaf27671cde8a4f055b7e (diff)
downloadurpmi-bb0fabd2c2bffcf3def2c8c538921305d09ec298.tar
urpmi-bb0fabd2c2bffcf3def2c8c538921305d09ec298.tar.gz
urpmi-bb0fabd2c2bffcf3def2c8c538921305d09ec298.tar.bz2
urpmi-bb0fabd2c2bffcf3def2c8c538921305d09ec298.tar.xz
urpmi-bb0fabd2c2bffcf3def2c8c538921305d09ec298.zip
- implement urpme --env
- handle urpme --auto-orphans --env
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r--urpm/orphans.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index 53abb41c..ceb9a3e0 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -25,7 +25,7 @@ sub installed_packages_packed {
#- side-effects: none
sub unrequested_list__file {
my ($urpm) = @_;
- "$urpm->{root}/var/lib/rpm/installed-through-deps.list";
+ ($urpm->{env_dir} || "$urpm->{root}/var/lib/rpm") . '/installed-through-deps.list';
}
#- side-effects: none
sub unrequested_list {
@@ -65,7 +65,7 @@ sub _installed_req_and_unreq_and_update_unrequested_list {
# update the list (to filter dups and now-removed-pkgs)
output_safe(unrequested_list__file($urpm),
join('', sort map { $_->name . "\n" } @$unreq),
- ".old");
+ ".old") if !$urpm->{env_dir};
($req, $unreq, $unrequested);
}