common/hooks/*-pkg: misc tweaks for proper -dbg {creat,registrat}ion.

This commit is contained in:
Juan RP 2014-03-02 07:07:59 +01:00
parent b3200722ef
commit 370c2aaf3c
2 changed files with 37 additions and 32 deletions

View file

@ -35,10 +35,12 @@ hook() {
pkgdir=$XBPS_REPOSITORY
fi
binpkg=${pkgver}.${arch}.xbps
binpkg_dbg=${pkgver}-dbg.${arch}.xbps
binpkg_dbg=${pkgname}-dbg-${version}_${revision}.${arch}.xbps
# Register binpkg.
registerpkg $pkgdir $binpkg
if [ -f ${pkgdir}/${binpkg} ]; then
registerpkg ${pkgdir} ${binpkg}
fi
# Register -dbg binpkg if it exists.
if [ -f ${pkgdir}/${binpkg_dbg} ]; then