From 2ff54fadeb0f16d1fe2b68d647b971d9d22d8a48 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Feb 2009 03:52:08 +0100 Subject: [PATCH] xbps-src: ignore pkgs with unexistent destdir in 'build-pkg all'. --HG-- extra : convert_revision : 7fe1a6d09fb90bed64b93f7b589641a34036511a --- bin/xbps-src/main.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/xbps-src/main.sh b/bin/xbps-src/main.sh index 3f31da60e06..a187a0de13c 100755 --- a/bin/xbps-src/main.sh +++ b/bin/xbps-src/main.sh @@ -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