From d52c103915afe6c932c853550e68fe696b227ed4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Nov 2011 14:01:51 +0100 Subject: [PATCH] xbps-src: verify_rundeps: also overwrite pkgver on automatic revbumps. --- xbps-src/shutils/verify_rundeps.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/verify_rundeps.sh b/xbps-src/shutils/verify_rundeps.sh index 51978f44ce..90d5b706e1 100644 --- a/xbps-src/shutils/verify_rundeps.sh +++ b/xbps-src/shutils/verify_rundeps.sh @@ -134,9 +134,8 @@ verify_rundeps() Add_dependency run ${_rdep} fi - unset rdep _rdep rdepcnt _rev + unset rdep _rdep rdepcnt done - unset revbumped # # If pkg uses any SONAME not known, error out. # @@ -194,12 +193,14 @@ verify_rundeps() readonly newrev=$((${_rev#revision=} + 1)) sed -i "s/^revision=.*$/revision=${newrev}/" $tmplf export revision=${newrev} + export pkgver="${pkgname}-${version}_${revision}" revbumped=1 fi else if [ -z "$revbumped" ]; then sed -i "/^short_desc=.*$/irevision=1" $tmplf export revision=1 + export pkgver="${pkgname}-${version}_${revision}" revbumped=1 fi fi