perl: handle provides in the same way than replaces.

This commit is contained in:
Juan RP 2012-09-23 11:13:58 +02:00
parent cc46f515f2
commit ce3ebf8f2d

View file

@ -22,7 +22,7 @@ long_desc="
# Before updating this package to a new major version, run ${FILESDIR}/provides.pl
# against ${wrksrc} to find the list of built in packages.
provides="
_provides="
perl-Archive-Extract-0.58_1
perl-Archive-Tar-1.82_1
perl-Attribute-Handlers-0.93_1
@ -144,8 +144,9 @@ perl-threads-shared-1.40_1
perl-version-0.99_1
"
for _f in ${provides}; do
for _f in ${_provides}; do
_p=$($XBPS_PKGDB_CMD getpkgname ${_f})
provides="${provides} ${_f}"
replaces="${replaces} ${_p}>=0"
done