From 70ab6594644fee3a999b1ee33b0b70d4adf1c70b Mon Sep 17 00:00:00 2001 From: Alexey Tourbin Date: Fri, 5 Jun 2009 03:34:40 +0400 Subject: [PATCH] find-package: changed "not found" diagnostics to "not installed" --- scripts/find-package.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/find-package.in b/scripts/find-package.in index 349e2f5..7b03571 100755 --- a/scripts/find-package.in +++ b/scripts/find-package.in @@ -215,8 +215,12 @@ FindByPath() fi fi - # Not found; output raw dependence. - Info "$f: $rep -> $rep (raw, not found)" + if [ -e "$rep" ] || rpmquery --whatprovides -- "$rep" >/dev/null 2>&1; then + $Verbose "$f: $rep -> $rep (raw)" + else + Info "$f: $rep -> $rep (raw, not installed)" + fi + printf %s\\n "$rep" }