Blame SOURCES/find-external-requires

b85e7c
#!/bin/sh
b85e7c
b85e7c
# Finds requirements provided outside of the current file set
b85e7c
b85e7c
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
b85e7c
b85e7c
provides=`echo $filelist | /usr/lib/rpm/find-provides`
b85e7c
b85e7c
{
b85e7c
for f in $filelist ; do
b85e7c
	echo $f | /usr/lib/rpm/find-requires | while read req ; do
b85e7c
		found=0
b85e7c
		for p in $provides ; do
b85e7c
			if [ "$req" = "$p" ]; then
b85e7c
				found=1
b85e7c
			fi
b85e7c
		done
b85e7c
		if [ "$found" = "0" ]; then
b85e7c
			echo $req
b85e7c
		fi
b85e7c
	done
b85e7c
done
b85e7c
} | sort -u