summaryrefslogtreecommitdiffstats
path: root/scripts/upd-updates
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-08-13 10:45:30 -0400
committerPeter Jones <pjones@pjones2.localdomain>2008-08-13 10:45:58 -0400
commit7b176df9bd507c1d2ccc0d3e380321f43f09e5a7 (patch)
treee34d7dd2ccc24e0ac46ad39e2c5fdfc56d39bd76 /scripts/upd-updates
parent253f400d994b84aa19856b61a19aa211ac71a246 (diff)
downloadanaconda-7b176df9bd507c1d2ccc0d3e380321f43f09e5a7.tar.gz
anaconda-7b176df9bd507c1d2ccc0d3e380321f43f09e5a7.tar.xz
anaconda-7b176df9bd507c1d2ccc0d3e380321f43f09e5a7.zip
Make upd-updates create the updates.img you specify if it doesn't already exist.
Diffstat (limited to 'scripts/upd-updates')
-rwxr-xr-xscripts/upd-updates3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/upd-updates b/scripts/upd-updates
index 1d4f34a43..5e0e7998e 100755
--- a/scripts/upd-updates
+++ b/scripts/upd-updates
@@ -43,6 +43,9 @@ if [ -z "$2" ]; then
fi
TARGET="$1" ; shift
+if [ ! -f "$1" ]; then
+ echo -n | cpio -H newc --quiet -o | gzip -9 > "$1"
+fi
OK=no
if [ -e "$TARGET" -a -w "$TARGET" -o -w $(dirname "$TARGET") ] ; then