diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | perl.prov | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -4,6 +4,7 @@ (Per Oyvind, mdv) - perl.prov: sync with upstream rpm.org: o filter out incorrect perl(main) provides (rh#177960) + o fix perl version provide for packages defined in multiple blocks (#rhbz214496) o make perl.{req,prov} warn about unreadable files o skip new-fangled head[34] while gerenerating deps (#118243) o skip over =for ... perlpod construct (RhBug:477516) @@ -139,7 +139,11 @@ sub process_file { if ($package eq 'main') { undef $package; } else { - $require{$package}=undef; + # If $package already exists in the $require hash, it means + # the package definition is broken up over multiple blocks. + # In that case, don't stomp a previous $VERSION we might have + # found. (See BZ#214496.) + $require{$package} = undef unless (exists $require{$package}); } } } |