aboutsummaryrefslogtreecommitdiffstats
path: root/src-rpm-list
blob: 28a5e4877f95b2fb35c7ecc2ce1461cd42ec3ea6 (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
#!/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"

    urpmf --distrib "$dir" --qf '%name' .
}

[ $# -eq 1 ] || exit 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