aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfind-requires.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in
index 13f9994..2a9bf65 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -110,7 +110,9 @@ for f in $scriptlist; do
done
if [ -n "$interplist" ]; then
for i in `echo "$interplist" | tr '[:blank:]' \\\n | sort -u`; do
- if ! rpm -qf $i --qf '%{NAME}\n' 2>/dev/null; then
+ if rpm -qf $i >/dev/null 2>&1; then
+ rpm -qf $i --qf '%{name}\n'
+ else
echo $i
fi
done | sort -u | grep -v 'libsafe|libfakeroot'