diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-09-08 07:31:56 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-09-08 07:31:56 +0000 |
commit | d391d69cb618047a8cf80b6c4e2a4f8504157801 (patch) | |
tree | 6a389c6f9ff3f369d6a5f95958d4fac0586242a5 /perl.prov | |
parent | 86fb0cec585d89c5a76f39624167d7a0c75e20e7 (diff) | |
download | rpm-setup-d391d69cb618047a8cf80b6c4e2a4f8504157801.tar rpm-setup-d391d69cb618047a8cf80b6c4e2a4f8504157801.tar.gz rpm-setup-d391d69cb618047a8cf80b6c4e2a4f8504157801.tar.bz2 rpm-setup-d391d69cb618047a8cf80b6c4e2a4f8504157801.tar.xz rpm-setup-d391d69cb618047a8cf80b6c4e2a4f8504157801.zip |
Some packages, like DB, might be temporarily redefined into a perl module.
Don't take them into account when computing perl provides.
Diffstat (limited to 'perl.prov')
-rwxr-xr-x | perl.prov | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -127,9 +127,12 @@ sub process_file { # provided packages (really ugly). if (m/^\s*package\s+([_:a-zA-Z0-9]+)\s*;/) { - $package=$1; - undef $version; - $require{$package}=undef; + # some internal packages, like DB, might be temporarily redefined inside a module. + if (!($package && $1 eq 'DB')) { + $package=$1; + undef $version; + $require{$package}=undef; + } } # after we found the package name take the first assignment to |