diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-14 18:17:43 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-14 18:20:30 +0100 |
commit | 67493bfca44d436143d825b155bf2bc38990ea82 (patch) | |
tree | 2851e5199b18011b80db2afbce45b483ac9a22ed /images | |
parent | 36d3a4ce53317b104d48b60c9fe1ed679065d1d4 (diff) | |
download | libguestfs-67493bfca44d436143d825b155bf2bc38990ea82.tar.gz libguestfs-67493bfca44d436143d825b155bf2bc38990ea82.tar.xz libguestfs-67493bfca44d436143d825b155bf2bc38990ea82.zip |
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.
Diffstat (limited to 'images')
-rw-r--r-- | images/Makefile.am | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/images/Makefile.am b/images/Makefile.am index 97fccce9..4b253a31 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 |