aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.pm')
-rw-r--r--URPM.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/URPM.pm b/URPM.pm
index 27187fa..640cf9b 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -6,7 +6,7 @@ use vars qw($VERSION @ISA);
require DynaLoader;
@ISA = qw(DynaLoader);
-$VERSION = '0.10';
+$VERSION = '0.11';
bootstrap URPM $VERSION;
@@ -73,6 +73,13 @@ sub traverse_tag {
++$count;
}
}
+ } elsif ($tag eq 'whatconflicts') {
+ foreach (@{$urpm->{depslist} || []}) {
+ if (grep { /^([^ \[]*)/ && exists $names{$1} } $_->conflicts) {
+ $callback and $callback->($_);
+ ++$count;
+ }
+ }
} elsif ($tag eq 'group') {
foreach (@{$urpm->{depslist} || []}) {
if (exists $names{$_->group}) {