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