From 340557d2727e384135f997a544d144ddb5019509 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 19 Dec 2008 08:32:55 +0100 Subject: [PATCH] genindex: cosmetic tweak. --HG-- extra : convert_revision : 69ede0d834e86c6dd7c2d99ccc928bcbb097ad8e --- utils/sh/binpkg-genindex.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/sh/binpkg-genindex.sh b/utils/sh/binpkg-genindex.sh index bfdebf118a9..6f4f9f94007 100644 --- a/utils/sh/binpkg-genindex.sh +++ b/utils/sh/binpkg-genindex.sh @@ -77,7 +77,11 @@ write_repo_pkgindex() write_repo_pkgindex_footer $pkgindexf $pkgsum if [ $? -eq 0 ]; then $XBPS_REGPKGDB_CMD sanitize-plist $pkgindexf - [ $? -ne 0 ] && rm -f $pkgindexf && rm -rf $tmppkgdir && exit 1 + if [ $? -ne 0 ]; then + rm -f $pkgindexf + rm -rf $tmppkgdir + exit 1 + fi msg_normal "Package index created (total pkgs: $pkgsum)." cp -f $pkgindexf $XBPS_PACKAGESDIR/pkg-index.plist fi