genindex: cosmetic tweak.

--HG--
extra : convert_revision : 69ede0d834e86c6dd7c2d99ccc928bcbb097ad8e
This commit is contained in:
Juan RP 2008-12-19 08:32:55 +01:00
parent a4c1f17a56
commit 340557d272
1 changed files with 5 additions and 1 deletions

View File

@ -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