Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 4f298dad17ddfd62a1b6219e00318ed4 > files > 34

rpm-4.14.2.1-12.1.mga7.src.rpm

--- 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