perl: handle provides in the same way than replaces.
This commit is contained in:
parent
cc46f515f2
commit
ce3ebf8f2d
|
@ -22,7 +22,7 @@ long_desc="
|
||||||
|
|
||||||
# Before updating this package to a new major version, run ${FILESDIR}/provides.pl
|
# Before updating this package to a new major version, run ${FILESDIR}/provides.pl
|
||||||
# against ${wrksrc} to find the list of built in packages.
|
# against ${wrksrc} to find the list of built in packages.
|
||||||
provides="
|
_provides="
|
||||||
perl-Archive-Extract-0.58_1
|
perl-Archive-Extract-0.58_1
|
||||||
perl-Archive-Tar-1.82_1
|
perl-Archive-Tar-1.82_1
|
||||||
perl-Attribute-Handlers-0.93_1
|
perl-Attribute-Handlers-0.93_1
|
||||||
|
@ -144,8 +144,9 @@ perl-threads-shared-1.40_1
|
||||||
perl-version-0.99_1
|
perl-version-0.99_1
|
||||||
"
|
"
|
||||||
|
|
||||||
for _f in ${provides}; do
|
for _f in ${_provides}; do
|
||||||
_p=$($XBPS_PKGDB_CMD getpkgname ${_f})
|
_p=$($XBPS_PKGDB_CMD getpkgname ${_f})
|
||||||
|
provides="${provides} ${_f}"
|
||||||
replaces="${replaces} ${_p}>=0"
|
replaces="${replaces} ${_p}>=0"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue