summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-06-26 15:26:42 +0000
committerFrancois Pons <fpons@mandriva.com>2003-06-26 15:26:42 +0000
commitf20a672e01e0caf0fd203ac14f83b09f5a4ce701 (patch)
tree588ed80b3d80ed980c9b78e7eb5e631464947de8 /urpmq
parenta4e5ea60f1de8d46935aeb17cba691a6d572fdf6 (diff)
downloadurpmi-f20a672e01e0caf0fd203ac14f83b09f5a4ce701.tar
urpmi-f20a672e01e0caf0fd203ac14f83b09f5a4ce701.tar.gz
urpmi-f20a672e01e0caf0fd203ac14f83b09f5a4ce701.tar.bz2
urpmi-f20a672e01e0caf0fd203ac14f83b09f5a4ce701.tar.xz
urpmi-f20a672e01e0caf0fd203ac14f83b09f5a4ce701.zip
4.4-8mdk
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq11
1 files changed, 10 insertions, 1 deletions
diff --git a/urpmq b/urpmq
index a6236c44..455ffdc2 100755
--- a/urpmq
+++ b/urpmq
@@ -306,7 +306,7 @@ if ($query->{list_aliases}) {
#- 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);
+ $urpm->resolve_requested($empty_db, $state, \%requested, callback_choices => $stop_on_choices, nodeps => 1);
} else {
$state->{selected} = \%requested;
}
@@ -410,6 +410,15 @@ if ($query->{complete}) {
keys %{$state->{rejected} || {}}) {
print '@removing@' . $removal . "\n";
}
+ foreach my $selected (values %{$state->{selected} || {}}) {
+ if (ref($selected) eq 'HASH' && ref($selected->{unsatisfied}) eq 'ARRAY') {
+ foreach (@{$selected->{unsatisfied}}) {
+ exists $hack_only_one{$_} and next;
+ print '@unsatisfied@' . $_ . "\n";
+ $hack_only_one{$_} = undef;
+ }
+ }
+ }
}
foreach my $id ($state->{selected} ? keys %{$state->{selected}} : keys %requested) {
my $class = $state->{selected}{$id} || $requested{$id};