xbps-src: fix 'build-pkg all' with pkgs with $revision set.

--HG--
extra : convert_revision : 866ef758ef96722676e575acebee1fe3be8a9df1
This commit is contained in:
Juan RP 2009-04-07 20:13:55 +02:00
parent 89841df22e
commit 581e908793
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ build-pkg)
if [ "$2" = "all" ]; then
for f in $($XBPS_BIN_CMD list|awk '{print $1}'); do
version=$($XBPS_REGPKGDB_CMD version $f)
if [ ! -d $XBPS_DESTDIR/$f-$version ]; then
if [ ! -d $XBPS_DESTDIR/$f-${version%_[0-9]*} ]; then
echo -n "Ignoring $f-$version, no destination "
echo "directory!"
continue