It turns out that db_load incrementally updates the database (instead
of writing a new one). Remove the old database to force db_load to
write a new one.
This also ensures that we handle write failure gracefully.
bash $<
guest-aux/fedora-name.db: guest-aux/fedora-name.db.txt
- $(DB_LOAD) $@ < $<
+ rm -f $@ $@-t
+ $(DB_LOAD) $@-t < $<
+ mv $@-t $@
guest-aux/fedora-packages.db: guest-aux/fedora-packages.db.txt
- $(DB_LOAD) $@ < $<
+ rm -f $@ $@-t
+ $(DB_LOAD) $@-t < $<
+ mv $@-t $@
# Make a (dummy) Debian image.
debian.img: guest-aux/make-debian-img.sh