Source-Changes-HG archive

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

[src/trunk]: src/distrib/sets Do not try to preserve permissions when copying...



details:   https://anonhg.NetBSD.org/src/rev/0b3c5699e538
branches:  trunk
changeset: 808611:0b3c5699e538
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 26 15:46:01 2015 +0000

description:
Do not try to preserve permissions when copying to the -i installdir
in the METALOG case (it makes no sense at all).

diffstat:

 distrib/sets/maketars |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r cc7abaec4ac8 -r 0b3c5699e538 distrib/sets/maketars
--- a/distrib/sets/maketars     Tue May 26 15:29:39 2015 +0000
+++ b/distrib/sets/maketars     Tue May 26 15:46:01 2015 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: maketars,v 1.81 2015/04/26 09:21:36 martin Exp $
+# $NetBSD: maketars,v 1.82 2015/05/26 15:46:01 martin Exp $
 #
 # Make release tar files for some or all lists.  Usage:
 # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@@ -213,11 +213,16 @@
 GZIP=-9n               # for pax -z
 export GZIP
 es=0
+preserve=
+if [ -n "${metalog}" ]; then
+       preserve="-pe"
+fi
+
 for setname in ${lists:-${nlists}}; do
        out="${setname}.tgz"
        if [ -n "${installdir}" ]; then
                msg "Copying set ${setname}"
-               runpax "${setname}" -rpe "${installdir}"
+               runpax "${setname}" -r ${preserve} "${installdir}"
        else
                if [ -n "${metalog}" -a "${tars}/${out}" -nt "${metalog}" ]
                then



Home | Main Index | Thread Index | Old Index