diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-24 18:40:51 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-24 18:40:51 +0000 |
commit | 678d505a814d4781f350851e935444afaea56df5 (patch) | |
tree | e9141bc633f9ad7babfbe1e81e8bd477f214e67e | |
parent | 5172e1a46444f54abcced42478bf5af17e48215b (diff) | |
download | urpmi-678d505a814d4781f350851e935444afaea56df5.tar urpmi-678d505a814d4781f350851e935444afaea56df5.tar.gz urpmi-678d505a814d4781f350851e935444afaea56df5.tar.bz2 urpmi-678d505a814d4781f350851e935444afaea56df5.tar.xz urpmi-678d505a814d4781f350851e935444afaea56df5.zip |
Remove redundant requires
-rwxr-xr-x | urpmq | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |