summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-24 18:40:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-24 18:40:51 +0000
commit678d505a814d4781f350851e935444afaea56df5 (patch)
treee9141bc633f9ad7babfbe1e81e8bd477f214e67e
parent5172e1a46444f54abcced42478bf5af17e48215b (diff)
downloadurpmi-678d505a814d4781f350851e935444afaea56df5.tar
urpmi-678d505a814d4781f350851e935444afaea56df5.tar.gz
urpmi-678d505a814d4781f350851e935444afaea56df5.tar.bz2
urpmi-678d505a814d4781f350851e935444afaea56df5.tar.xz
urpmi-678d505a814d4781f350851e935444afaea56df5.zip
Remove redundant requires
-rwxr-xr-xurpmq4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index 384fc3ee..1850d1ec 100755
--- a/urpmq
+++ b/urpmq
@@ -209,6 +209,7 @@ if ($urpm::args::options{list_aliases}) {
};
#- open/close of database should be moved here, in order to allow testing
#- some bogus case and check for integrity. (note auto_select implies upgrade).
+ #- XXX this is broken
if ($urpm::args::options{what_requires}) {
#- search for packages that require one of the proposed packages.
my (@properties, %requires, %properties, $dep);
@@ -218,8 +219,6 @@ if ($urpm::args::options{list_aliases}) {
@properties = keys %requested;
if (@properties) {
- require URPM::Resolve;
-
#- build a requires to packages id hash.
foreach my $pkg (@{$urpm->{depslist}}) {
foreach ($pkg->requires_nosense) {
@@ -282,7 +281,6 @@ if ($urpm::args::options{list_aliases}) {
} elsif ($urpm::args::options{deps}) {
#- only deps required.
my $empty_db = new URPM; #- URPM has same methods as URPM::DB and empty URPM will be seen as empty URPM::DB.
- require URPM::Resolve;
$urpm->resolve_requested($empty_db, $state, \%requested, callback_choices => $stop_on_choices, nodeps => 1);
} else {
$state->{selected} = \%requested;