Blame SOURCES/find-external-requires

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