xbps-src: ignore pkgs with unexistent destdir in 'build-pkg all'.

--HG--
extra : convert_revision : 7fe1a6d09fb90bed64b93f7b589641a34036511a
This commit is contained in:
Juan RP 2009-02-09 03:52:08 +01:00
parent 27c5d48ec6
commit 2ff54fadeb
1 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,12 @@ build-pkg)
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
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
echo -n "Ignoring $f-$version, no destination "
echo "directory!"
continue
fi
setup_tmpl $f
xbps_make_binpkg
reset_tmpl_vars