summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-30 10:37:24 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-30 10:37:24 +0000
commit10df4c23479beaf8bd7325be85d0dd177fb4ac73 (patch)
tree420af4fdf0a27ac0652acbdec8dcbd2a0ef4564b
parent257132a4cfc07030ead2d9df2deb5b0ac30046bf (diff)
downloaddrakx-10df4c23479beaf8bd7325be85d0dd177fb4ac73.tar
drakx-10df4c23479beaf8bd7325be85d0dd177fb4ac73.tar.gz
drakx-10df4c23479beaf8bd7325be85d0dd177fb4ac73.tar.bz2
drakx-10df4c23479beaf8bd7325be85d0dd177fb4ac73.tar.xz
drakx-10df4c23479beaf8bd7325be85d0dd177fb4ac73.zip
(empty_packages) use urpm rather than URPM (thus enabling us to reuse urpmi's
higher level code) (no changes for current callers since urpm inherits from URPM)
-rw-r--r--perl-install/install/pkgs.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 7b2937c16..d2fabb02b 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -11,6 +11,7 @@ BEGIN {
use URPM;
use URPM::Resolve;
use URPM::Signature;
+use urpm;
use urpm::select;
use common;
use install::any;
@@ -326,7 +327,7 @@ sub unselectAllPackages {
sub empty_packages {
my ($o_keep_unrequested_dependencies) = @_;
- my $packages = new URPM;
+ my $packages = urpm->new;
#- add additional fields used by DrakX.
@$packages{qw(count media)} = (0, []);