xbps-src: verify_rundeps: also overwrite pkgver on automatic revbumps.

This commit is contained in:
Juan RP 2011-11-12 14:01:51 +01:00
parent 6fe5680fa6
commit d52c103915
1 changed files with 3 additions and 2 deletions

View File

@ -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