-
Notifications
You must be signed in to change notification settings - Fork 2
/
rpmfusion-post-sign
executable file
·69 lines (61 loc) · 4.32 KB
/
rpmfusion-post-sign
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
#
# rpmfusion-post-sign
#
FEDORA_STABLES="39 40 41"
FEDORA_BRANCH=""
FEDORA_RAWHIDE="42"
EL_STABLES="8 9"
for f in free nonfree ; do
for r in ${FEDORA_STABLES} ${FEDORA_BRANCH} ${FEDORA_RAWHIDE} ; do
find /mnt/koji/mash/${f}/${r}-updates-candidate -name "*.rpm" | xargs -r koji-rpmfusion import-sig --write
done
for r in ${EL_STABLES} ; do
find /mnt/koji/mash/${f}/el${r}-candidate -name "*.rpm" | xargs -r koji-rpmfusion import-sig --write
done
done
#Create report
rpmfusion-update-report | mail -r noreply@rpmfusion.org -s "RPM Fusion update report $(date -I)" rpmfusion-developers@lists.rpmfusion.org,rpmfusion-users@lists.rpmfusion.org
for f in free nonfree ; do
for r in ${FEDORA_STABLES} ${FEDORA_BRANCH} ; do
if [ $f == "nonfree" ] ; then
koji-rpmfusion list-tagged f${r}-${f}-updates-testing --quiet | awk '{print $1}' |grep nvidia | grep -v 340xx |grep -v 390xx |grep -v 470xx |grep -v open-kmod | xargs -r koji-rpmfusion tag-build f${r}-${f}-nvidia-driver
koji-rpmfusion list-tagged f${r}-${f}-updates-testing --quiet | awk '{print $1}' |grep nvidia-open-kmod | xargs -r koji-rpmfusion move-build f${r}-${f}-updates-testing f${r}-${f}-tainted
koji-rpmfusion list-tagged f${r}-${f}-updates-testing --quiet | awk '{print $1}' |grep steam | xargs -r koji-rpmfusion tag-build f${r}-${f}-steam
fi
koji-rpmfusion list-tagged f${r}-${f}-updates-testing --quiet | awk '{print $1}' |grep libdvdcss| xargs -r koji-rpmfusion move-build f${r}-${f}-updates-testing f${r}-${f}-tainted
koji-rpmfusion list-tagged f${r}-${f}-updates-testing --quiet | awk '{print $1}' |grep -v release | xargs -r koji-rpmfusion move-build f${r}-${f}-updates-testing f${r}-${f}-updates
#automove discord to stable ASAP
koji-rpmfusion list-tagged f${r}-${f}-updates-candidate --quiet | awk '{print $1}' | grep discord | xargs -r koji-rpmfusion move-build f${r}-${f}-updates-candidate f${r}-${f}-updates
koji-rpmfusion list-tagged f${r}-${f}-updates-candidate --quiet | awk '{print $1}' | xargs -r koji-rpmfusion move-build f${r}-${f}-updates-candidate f${r}-${f}-updates-testing
done
for r in ${FEDORA_BRANCH} ; do
# fixup for branch
koji-rpmfusion list-tagged f${r}-${f}-updates --quiet | awk '{print $1}' |grep -v release | xargs -r koji-rpmfusion move-build f${r}-${f}-updates f${r}-${f}
done
for r in ${FEDORA_RAWHIDE} ; do
if [ $f == "nonfree" ] ; then
koji-rpmfusion list-tagged f${r}-${f}-updates-candidate --quiet | awk '{print $1}' |grep nvidia | grep -v 340xx |grep -v 390xx |grep -v open-kmod | xargs -r koji-rpmfusion tag-build f${r}-${f}-nvidia-driver
koji-rpmfusion list-tagged f${r}-${f}-updates-candidate --quiet | awk '{print $1}' |grep nvidia-open-kmod | xargs -r koji-rpmfusion move-build f${r}-${f}-updates-candidate f${r}-${f}-tainted
koji-rpmfusion list-tagged f${r}-${f}-updates-candidate --quiet | awk '{print $1}' |grep steam | xargs -r koji-rpmfusion tag-build f${r}-${f}-steam
fi
koji-rpmfusion list-tagged f${r}-${f}-updates-candidate --quiet | awk '{print $1}' | xargs -r koji-rpmfusion move-build f${r}-${f}-updates-candidate f${r}-${f}
done
for r in ${EL_STABLES} ; do
koji-rpmfusion list-tagged el${r}-${f}-testing --quiet | awk '{print $1}' | grep libdvdcss |xargs -r koji-rpmfusion move-build el${r}-${f}-testing el${r}-${f}-tainted
koji-rpmfusion list-tagged el${r}-${f}-testing --quiet | awk '{print $1}' |grep nvidia-open-kmod | xargs -r koji-rpmfusion move-build el${r}-${f}-testing el${r}-${f}-tainted
#automove discord to stable ASAP
koji-rpmfusion list-tagged el${r}-${f}-candidate --quiet | awk '{print $1}' | grep discord | xargs -r koji-rpmfusion move-build el${r}-${f}-candidate el${r}-${f}
koji-rpmfusion list-tagged el${r}-${f}-testing --quiet | awk '{print $1}' | xargs -r koji-rpmfusion move-build el${r}-${f}-testing el${r}-${f}
koji-rpmfusion list-tagged el${r}-${f}-candidate --quiet | awk '{print $1}' | xargs -r koji-rpmfusion move-build el${r}-${f}-candidate el${r}-${f}-testing
done
done
# There is a need for a short delay before to fixup the branch push
if [ ! x${FEDORA_BRANCH} == x ] ; then
sleep 10
fi
for f in free nonfree ; do
for r in ${FEDORA_BRANCH} ; do
koji-rpmfusion list-tagged f${r}-${f}-updates --quiet | awk '{print $1}' | xargs -r koji-rpmfusion move-build f${r}-${f}-updates f${r}-${f}
done
done