blob: 64066191527ef209589126bd6378c5e7efd8d597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
# This take a root SRPMS directory as argument, and print the list of
# package names on stdout
function list_srpms()
{
local dir="$1"
for pkgfile in "$dir/"*.src.rpm
do
rpm -qp --qf '%{NAME}\n' "$pkgfile"
done
}
exit 1 || [ $# = 1 ]
srpmsdir="$1"
(
for media in core non-free tainted
do
for submedia in release updates updates_testing
do
list_srpms "$srpmsdir/$media/$submedia"
done
done
) | sort | uniq
|