pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgclean/files If there are no files to clean...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/787e85267f36
branches:  trunk
changeset: 503296:787e85267f36
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 17 22:58:36 2005 +0000

description:
If there are no files to clean, do nothing.

diffstat:

 pkgtools/pkgclean/files/pkgclean.sh |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 490c551993ba -r 787e85267f36 pkgtools/pkgclean/files/pkgclean.sh
--- a/pkgtools/pkgclean/files/pkgclean.sh       Thu Nov 17 22:30:09 2005 +0000
+++ b/pkgtools/pkgclean/files/pkgclean.sh       Thu Nov 17 22:58:36 2005 +0000
@@ -1,5 +1,5 @@
 #! @SH@
-# $NetBSD: pkgclean.sh,v 1.1 2005/11/17 22:30:30 rillig Exp $
+# $NetBSD: pkgclean.sh,v 1.2 2005/11/17 22:58:36 rillig Exp $
 #
 
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -67,6 +67,10 @@
 #
 
 for wrkdir in "${pkgsrcdir}"/*/*/"${wrkdir_basename}"; do
+       case $wrkdir in
+       "${pkgsrcdir}/*/*/${wrkdir_basename}") continue;;
+       esac
+
        echo "===> Cleaning in ${wrkdir}"
 
        # When WRKOBJDIR is set, ${wrkdir_basename} is just a symlink to



Home | Main Index | Thread Index | Old Index