diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM/Resolve.pm | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,7 @@ Version 4.33 - 31 May 2011, by Per Øyvind Karlsen +- add disttag & distepoch to $state->{rejected} for assisting parsing of + fullname with regex - add URPM::Resolve::fullname_parts() as a function parsing fullname with a regex assisted by provided disttag & distepoch diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 4df9505..9d03614 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -774,6 +774,9 @@ sub set_rejected { $urpm->{debug_URPM}("set_rejected: $fullname") if $urpm->{debug_URPM}; #- keep track of size of package which are finally removed. $rv->{size} = $rdep->{rejected_pkg}->size; + #- (proyvind): hack to get disttag & distepoch available for regexp + $rv->{disttag} = $rdep->{rejected_pkg}->disttag; + $rv->{distepoch} = $rdep->{rejected_pkg}->distepoch; } #- keep track of what causes closure. @@ -784,6 +787,8 @@ sub set_rejected { @$unsatisfied = uniq(@$unsatisfied, @$l); } $closure->{$_} = $rdep->{why}{$_} foreach keys %{$rdep->{why}}; + $closure->{disttag} = $rdep->{from}->disttag; + $closure->{distepoch} = $rdep->{from}->distepoch; } #- set removed and obsoleted level. |