build_haiku_image: don't recreate indices when updating

mkinex fails when the indices already exist.
This commit is contained in:
Adrien Destugues
2020-07-21 18:38:06 +02:00
parent a704a197f5
commit 5b80a2fa0d
+2
View File
@@ -292,6 +292,7 @@ if [ -n "$updateAllPackages" ]; then
$mkdir -p "${tPrefix}system/packages" $mkdir -p "${tPrefix}system/packages"
fi fi
if [ ! $updateOnly ]; then
echo "Creating filesystem indices..." echo "Creating filesystem indices..."
$mkindex -t string Audio:Album $mkindex -t string Audio:Album
$mkindex -t string Audio:Artist $mkindex -t string Audio:Artist
@@ -331,6 +332,7 @@ $mkindex -t int32 Media:Year
$mkindex -t int32 MAIL:account_id $mkindex -t int32 MAIL:account_id
$mkindex -t int32 MAIL:read $mkindex -t int32 MAIL:read
$mkindex -t int32 MAIL:when $mkindex -t int32 MAIL:when
fi
echo "Populating image ..." echo "Populating image ..."
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do