From 2d48535d1e50b725c76c39056fe8242d791349dc Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 13 Aug 2004 07:45:22 +0000 Subject: [PATCH] don't output pkgname if no problem to output. okay pvalchev@ --- infrastructure/package/check-common-dirs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/package/check-common-dirs b/infrastructure/package/check-common-dirs index 1fe4bdddd91..c6e5579ae93 100644 --- a/infrastructure/package/check-common-dirs +++ b/infrastructure/package/check-common-dirs @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $OpenBSD: check-common-dirs,v 1.1 2004/08/12 18:58:34 espie Exp $ +# $OpenBSD: check-common-dirs,v 1.2 2004/08/13 07:45:22 espie Exp $ # Copyright (c) 2004 Marc Espie # # Permission to use, copy, modify, and distribute this software for any @@ -145,7 +145,9 @@ sub show_results next if parent_has_dir($db, $t, $dir); push(@l, $dir); } - print "$pkgname: ", join(', ', sort @l), "\n"; + if (@l != 0) { + print "$pkgname: ", join(', ', sort @l), "\n"; + } } }