hooks/generate-runtime-deps: also make "virtual?" subst on noarch/noverifyrdeps pkgs.

This commit is contained in:
Juan RP 2014-08-26 09:58:58 +02:00
parent 1651a5fe6e
commit b019b5df6f
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ hook() {
if [ -n "$noarch" -o -n "$noverifyrdeps" ]; then if [ -n "$noarch" -o -n "$noverifyrdeps" ]; then
echo "$run_depends" > ${PKGDESTDIR}/rdeps echo "$run_depends" > ${PKGDESTDIR}/rdeps
sed 's,virtual?,,g' -i ${PKGDESTDIR}/rdeps
return 0 return 0
fi fi
@ -156,6 +157,8 @@ hook() {
if [ -n "$run_depends" ]; then if [ -n "$run_depends" ]; then
echo "$run_depends" > ${PKGDESTDIR}/rdeps echo "$run_depends" > ${PKGDESTDIR}/rdeps
fi
if [ -s ${PKGDESTDIR}/rdeps ]; then
sed 's,virtual?,,g' -i ${PKGDESTDIR}/rdeps sed 's,virtual?,,g' -i ${PKGDESTDIR}/rdeps
fi fi
if [ -n "${sorequires}" ]; then if [ -n "${sorequires}" ]; then