xbps-src: fix 'xbps-src build-pkg all' after latest changes.

--HG--
extra : convert_revision : d39b501cc701921d109dcc1c713a997bc8c100ee
This commit is contained in:
Juan RP 2009-04-18 16:45:30 +02:00
parent 1487d0128f
commit f4cd426deb

View file

@ -220,14 +220,9 @@ build-pkg)
. $XBPS_SHUTILSDIR/tmpl_funcs.sh . $XBPS_SHUTILSDIR/tmpl_funcs.sh
if [ "$2" = "all" ]; then if [ "$2" = "all" ]; then
for f in $($XBPS_BIN_CMD list|awk '{print $1}'); do for f in $($XBPS_BIN_CMD list|awk '{print $1}'); do
version=$($XBPS_REGPKGDB_CMD version $f) pkg=$(xbps-pkgdb getpkgname $f)
if [ ! -d $XBPS_DESTDIR/$f-${version%_[0-9]*} ]; then setup_tmpl ${pkg}
echo -n "Ignoring $f-$version, no destination " xbps_make_binpkg ${pkg}
echo "directory!"
continue
fi
setup_tmpl $f
xbps_make_binpkg $f
reset_tmpl_vars reset_tmpl_vars
done done
else else