File 0038-appliance-Use-a-temporary-file-when-processing-packa.patch of Package libguestfs

From 8b488d6992a14ef55e9030f965c5d031d1cb4b69 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 38/72] appliance: Use a temporary file when processing packagelist.in.

Cherry picked from upstream commit 9556903888eed268895a8454491d56302985f7e1.
---
 appliance/Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/appliance/Makefile.am b/appliance/Makefile.am
index 0abd698..e5155c2 100644
--- a/appliance/Makefile.am
+++ b/appliance/Makefile.am
@@ -77,7 +77,8 @@ kmod.whitelist: kmod.whitelist.in
 
 packagelist: packagelist.in
 	cpp -undef -D$(DIST)=1 < $< | \
-	grep -v '^[[:space:]]*$$' | grep -v '^#' > $@
+	grep -v '^[[:space:]]*$$' | grep -v '^#' > $@-t
+	mv $@-t $@
 
 # This is for building the supermin appliance.  It has to be enabled
 # specifically with './configure --enable-supermin'.  You really need
-- 
1.7.1

openSUSE Build Service is sponsored by