summaryrefslogtreecommitdiffstats
path: root/urpmq
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 /urpmq
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 'urpmq')
-rwxr-xr-xurpmq7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index 0924d9ab..a5dee31d 100755
--- a/urpmq
+++ b/urpmq
@@ -28,6 +28,7 @@ use urpm::args;
use urpm::msg;
use urpm::sys;
use urpm::media;
+use urpm::select;
use urpm::get_pkgs;
#- default options.
@@ -197,7 +198,7 @@ if ($urpm::args::options{list_aliases}) {
#- search the packages according to the selection given by the user.
if (@names) {
- $urpm->search_packages(
+ urpm::select::search_packages($urpm,
\%requested,
[ @names ],
use_provides => $urpm::args::options{use_provides},
@@ -208,7 +209,7 @@ if ($urpm::args::options{list_aliases}) {
or exit 1;
}
if (@src_names) {
- $urpm->search_packages(
+ urpm::select::search_packages($urpm,
\%requested,
[ @src_names ],
use_provides => $urpm::args::options{use_provides},
@@ -291,7 +292,7 @@ if ($urpm::args::options{list_aliases}) {
}
}
} elsif ($urpm::args::options{auto_select} || $urpm::args::options{upgrade}) {
- $urpm->resolve_dependencies($state, \%requested,
+ urpm::select::resolve_dependencies($urpm, $state, \%requested,
keep => $urpm::args::options{keep},
rpmdb => $urpm::args::options{env} && "$urpm::args::options{env}/rpmdb.cz",
auto_select => $urpm::args::options{auto_select},