equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
|
3 # Finds requirements provided outside of the current file set |
2 # Finds requirements provided outside of the current file set |
4 |
3 |
5 filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` |
4 filelist=$( sed "s/[]['\"*?{}]/\\\\\&/g" ) |
6 |
5 provides=$( echo "$filelist" | /usr/lib/rpm/find-provides ) |
7 provides=`echo "$filelist" | /usr/lib/rpm/find-provides` |
6 echo "$filelist" \ |
8 |
7 | /usr/lib/rpm/find-requires \ |
9 { |
8 | grep -F -v "$provides" \ |
10 for f in $filelist ; do |
9 | sort -u |
11 echo $f | /usr/lib/rpm/find-requires | while read req ; do |
|
12 found=0 |
|
13 for p in $provides ; do |
|
14 if [ "$req" = "$p" ]; then |
|
15 found=1 |
|
16 fi |
|
17 done |
|
18 if [ "$found" = "0" ]; then |
|
19 echo $req |
|
20 fi |
|
21 done |
|
22 done |
|
23 } | sort -u |
|