pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mklivecd/files Remove the hidden stage files ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/196ddd51e75a
branches:  trunk
changeset: 540115:196ddd51e75a
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Mar 27 21:08:26 2008 +0000

description:
Remove the hidden stage files only if the iso image was created
successfully.

diffstat:

 sysutils/mklivecd/files/mklivecd.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r c7632d75764a -r 196ddd51e75a sysutils/mklivecd/files/mklivecd.sh
--- a/sysutils/mklivecd/files/mklivecd.sh       Thu Mar 27 20:56:38 2008 +0000
+++ b/sysutils/mklivecd/files/mklivecd.sh       Thu Mar 27 21:08:26 2008 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: mklivecd.sh,v 1.47 2008/03/27 20:54:09 xtraeme Exp $
+# $NetBSD: mklivecd.sh,v 1.48 2008/03/27 21:08:26 xtraeme Exp $
 #
 # Copyright (c) 2004-2008 Juan Romero Pardines.
 # All rights reserved.
@@ -689,7 +689,7 @@
        cat > $ISODIR/etc/rc.d/root <<_EOF_
 #!/bin/sh
 #
-# \$NetBSD: mklivecd.sh,v 1.47 2008/03/27 20:54:09 xtraeme Exp $
+# \$NetBSD: mklivecd.sh,v 1.48 2008/03/27 21:08:26 xtraeme Exp $
 # 
 
 # PROVIDE: root
@@ -1089,6 +1089,10 @@
                     > /dev/null 2>&1
                showmsgstring
             fi
+
+            rm -f $kernel_stage_done
+            rm -f $base_stage_done
+            rm -f $chroot_stage_done
        }
        if [ -f $BASEDIR/$IMAGE_NAME.iso ]; then
            echo "* Found $IMAGE_NAME.iso."



Home | Main Index | Thread Index | Old Index