From: Richard W.M. Jones Date: Thu, 14 Apr 2011 17:17:43 +0000 (+0100) Subject: Delete file so db_load doesn't run incrementally. X-Git-Tag: 1.11.1~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=67493bfca44d436143d825b155bf2bc38990ea82;p=libguestfs.git Delete file so db_load doesn't run incrementally. 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. --- diff --git a/images/Makefile.am b/images/Makefile.am index 97fccce..4b253a3 100644 --- a/images/Makefile.am +++ b/images/Makefile.am @@ -176,10 +176,14 @@ fedora.img: guest-aux/make-fedora-img.sh \ 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