Blame SOURCES/redhat-rpm-config-9.1.0-find-requires-fix-detection.patch

76c1b9
--- current/find-requires.orig	2016-06-13 17:31:21.689322870 +0200
76c1b9
+++ current/find-requires	2016-06-13 17:42:04.779855644 +0200
76c1b9
@@ -21,10 +21,10 @@
76c1b9
 # --- Grab the file manifest and classify files.
76c1b9
 #filelist=`sed "s/['\"]/\\\&/g"`
76c1b9
 filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
76c1b9
-exelist=`echo $filelist | xargs -r file | egrep -v ":.* (commands|script) " | \
76c1b9
+exelist=`echo $filelist | xargs -r file | egrep -v ":.* (commands|script)[, ]" | \
76c1b9
 	grep ":.*executable" | cut -d: -f1`
76c1b9
 scriptlist=`echo $filelist | xargs -r file | \
76c1b9
-	egrep ":.* (commands|script) " | cut -d: -f1`
76c1b9
+	egrep ":.* (commands|script)[, ]" | cut -d: -f1`
76c1b9
 liblist=`echo $filelist | xargs -r file | \
76c1b9
 	grep ":.*shared object" | cut -d : -f1`
76c1b9