Blame SOURCES/find-external-requires

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