Blame SOURCES/find-external-requires

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