summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
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};