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