From 9556903888eed268895a8454491d56302985f7e1 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sun, 19 Dec 2010 10:55:03 +0000
Subject: [PATCH] appliance: Use a temporary file when processing
 packagelist.in.

---
 appliance/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/appliance/Makefile.am b/appliance/Makefile.am
index cd4952a..f1c2327 100644
--- a/appliance/Makefile.am
+++ b/appliance/Makefile.am
@@ -43,7 +43,8 @@ make.sh: make.sh.in
 
 packagelist: packagelist.in
 	cpp -undef -D$(DISTRO)=1 < $< | \
-	grep -v '^[[:space:]]*$$' | grep -v '^#' > $@
+	grep -v '^[[:space:]]*$$' | grep -v '^#' > $@-t
+	mv $@-t $@
 
 supermin.d/base.img supermin.d/hostfiles: stamp-supermin
 stamp-supermin: make.sh packagelist
-- 
1.8.3.1