summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-21 18:50:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-21 18:50:52 +0000
commit3d6b7b8b4823e1a60b676c86e10358ee45bb70da (patch)
treeefe803426188fe7f7014c59631e29ec586f62b25 /urpme
parent041901039275532d0834fa86e5516509c615728f (diff)
downloadurpmi-3d6b7b8b4823e1a60b676c86e10358ee45bb70da.tar
urpmi-3d6b7b8b4823e1a60b676c86e10358ee45bb70da.tar.gz
urpmi-3d6b7b8b4823e1a60b676c86e10358ee45bb70da.tar.bz2
urpmi-3d6b7b8b4823e1a60b676c86e10358ee45bb70da.tar.xz
urpmi-3d6b7b8b4823e1a60b676c86e10358ee45bb70da.zip
move many functions from urpm.pm to new module urpm/select.pm
Diffstat (limited to 'urpme')
-rw-r--r--urpme6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpme b/urpme
index 9658f2a4..6938a543 100644
--- a/urpme
+++ b/urpme
@@ -25,6 +25,8 @@ use urpm::args;
use urpm::msg;
use urpm::install;
use urpm::media;
+use urpm::select;
+
$ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
@@ -88,7 +90,7 @@ urpm::media::configure($urpm,
);
#- examine packages...
-my @toremove = $urpm->find_packages_to_remove(
+my @toremove = urpm::select::find_packages_to_remove($urpm,
$state,
\@l,
matches => $matches,
@@ -114,7 +116,7 @@ my @toremove = $urpm->find_packages_to_remove(
root => $root,
) or $urpm->{fatal}(0, N("Nothing to remove"));
-my $list = $urpm->translate_why_removed($state, @toremove);
+my $list = urpm::select::translate_why_removed($urpm, $state, @toremove);
if ($test && $auto) {
#- Warning : the following message is parsed in urpm::parallel_*
my $msg = N("Checking to remove the following packages");