summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-23 05:31:57 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-23 05:31:57 +0000
commit2ac3a1115b5af34e0d42ce7d908436fc1d0cdfc4 (patch)
tree455197ac3bd604d34677cb4e7d78273d31751018
parentf9d5295d8d557a503f635e9b05db1d9296058335 (diff)
downloadportage-2ac3a1115b5af34e0d42ce7d908436fc1d0cdfc4.tar.gz
portage-2ac3a1115b5af34e0d42ce7d908436fc1d0cdfc4.tar.bz2
portage-2ac3a1115b5af34e0d42ce7d908436fc1d0cdfc4.zip
warn if we were given a non-existent dir
svn path=/main/trunk/; revision=2769
-rwxr-xr-xbin/prepman7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/prepman b/bin/prepman
index 7e555e65f..9a3b66f3e 100755
--- a/bin/prepman
+++ b/bin/prepman
@@ -3,13 +3,16 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepman,v 1.10.2.3 2005/05/29 12:40:08 jstubbs Exp $
-if [ -z "$1" ] ; then
+if [[ -z $1 ]] ; then
z="${D}usr/share/man"
else
z="${D}$1/man"
fi
-[ ! -d "${z}" ] && exit 0
+if [[ ! -d ${z} ]] ; then
+ echo "QA Notice: prepman called with non-existent dir '${z#${D}}'" 2>&1
+ exit 0
+fi
for x in `find "${z}"/ -type d 2>/dev/null` ; do
for y in `find "${x}"/ -mindepth 1 -maxdepth 1 \( -type f -or -type l \) ! -name '.keep' 2>/dev/null` ; do