Make sure to work with finished db as needed

This commit is contained in:
Martin Valba 2023-10-24 02:20:48 +03:00
parent 0060990848
commit 6fbc986e13

View File

@ -49,14 +49,16 @@ run_db_update() {
cd packages
# Remove old db entry
rm -f $whatami.db* $whatami.files*
rm $whatami.db* $whatami.files*
# Do the update
repo-add $whatami.db.tar.gz ../pool/*${target_arch}*.gz
rm $whatami.db $whatami.files
# Rename the finished db ( so it works as needed for me )
cp -vrf $whatami.db.tar.gz $whatami.db
cp -vrf $whatami.files.tar.gz $whatami.files
cp -f $whatami.db.tar.gz $whatami.db
cp -f $whatami.files.tar.gz $whatami.files
cd ..
}
@ -64,5 +66,5 @@ run_db_update() {
restore_the_layout() {
mv pool/*.gz packages/
#rm -r pool
rm -r pool
}