--- a/scripts/script.req 2014-09-23 14:43:24.191929373 +0200 +++ b/scripts/script.req 2014-09-23 14:56:18.375898758 +0200 @@ -38,6 +38,11 @@ while read filename; do # - libsafe|libfakeroot: historically filtered : else - echo $INTERP + PKG=$(LC_ALL=C rpm -qf --qf '%{name}' $INTERP 2>/dev/null |grep -v "is not owned by any package") + if [ -n "$PKG" ]; then + echo $PKG + else + echo $INTERP + fi fi done