From 48209c40581a20eb4a51b41d973559494ae9f540 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Nov 2011 09:52:34 +0100 Subject: [PATCH] xbps-src: revbump if shlibs differ in the rshlibs file. --- xbps-src/shutils/verify_rundeps.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/xbps-src/shutils/verify_rundeps.sh b/xbps-src/shutils/verify_rundeps.sh index 98ee486dda..deeb79046c 100644 --- a/xbps-src/shutils/verify_rundeps.sh +++ b/xbps-src/shutils/verify_rundeps.sh @@ -130,19 +130,6 @@ verify_rundeps() tmplf=$XBPS_SRCPKGDIR/$pkgname/template fi sed -i "/^Add_dependency run ${_rdep}.*$/d" $tmplf - _rev=$(egrep '^revision=.*' $tmplf) - if [ -n "${_rev}" ]; then - newrev=$((${_rev#revision=} + 1)) - if [ -z "$revbumped" ]; then - sed -i "s/^revision=.*$/revision=${newrev}/" $tmplf - revbumped=1 - fi - else - if [ -z "$revbumped" ]; then - sed -i "/^short_desc=.*$/irevision=1" $tmplf - revbumped=1 - fi - fi if find_rundep ${_rdep}; then Add_dependency run ${_rdep} @@ -199,6 +186,19 @@ verify_rundeps() fi if [ -n "$broken" ]; then - msg_error "$pkgver: shlibs changed: a revbump is necessary!\n" + msg_warn "$pkgver: shlibs changed... package has been revbumped!\n" + _rev=$(egrep '^revision=.*' $tmplf) + if [ -n "${_rev}" ]; then + newrev=$((${_rev#revision=} + 1)) + if [ -z "$revbumped" ]; then + sed -i "s/^revision=.*$/revision=${newrev}/" $tmplf + revbumped=1 + fi + else + if [ -z "$revbumped" ]; then + sed -i "/^short_desc=.*$/irevision=1" $tmplf + revbumped=1 + fi + fi fi }