Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/postinstall Check that $TGZMODE is true to deduce t...
details: https://anonhg.NetBSD.org/src/rev/f1f7ac9c0bf9
branches: trunk
changeset: 769312:f1f7ac9c0bf9
user: jym <jym%NetBSD.org@localhost>
date: Tue Sep 06 14:08:05 2011 +0000
description:
Check that $TGZMODE is true to deduce that the set is extracted
from a .tgz instead of checking that $SRC_DIR != $SRC_ARG. These variables
can be modified in different places, so it's less error prone.
diffstat:
usr.sbin/postinstall/postinstall | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 225c2f21a2f3 -r f1f7ac9c0bf9 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall Tue Sep 06 13:34:44 2011 +0000
+++ b/usr.sbin/postinstall/postinstall Tue Sep 06 14:08:05 2011 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.122 2011/08/09 18:24:46 jmmv Exp $
+# $NetBSD: postinstall,v 1.123 2011/09/06 14:08:05 jym Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1805,7 +1805,7 @@
list)
echo "Source directory: ${SRC_DIR:-/}"
echo "Target directory: ${DEST_DIR:-/}"
- if [ "${SRC_DIR}" != "${SRC_ARG}" ]; then
+ if $TGZMODE; then
echo " (extracted from: ${SRC_ARG})"
fi
list
@@ -1825,7 +1825,7 @@
# perform each check/fix
#
echo "Source directory: ${SRC_DIR:-/}"
- if [ "${SRC_DIR}" != "${SRC_ARG}" ]; then
+ if $TGZMODE; then
echo " (extracted from: ${SRC_ARG})"
fi
echo "Target directory: ${DEST_DIR:-/}"
Home |
Main Index |
Thread Index |
Old Index