-
Notifications
You must be signed in to change notification settings - Fork 2
/
rpmfusion-update-appstream-nvidia
executable file
·30 lines (24 loc) · 1.25 KB
/
rpmfusion-update-appstream-nvidia
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
#!/bin/bash
# update-appstream nvidia-driver steam
set -e
tmp=$(mktemp -d)
trap cleanup EXIT
cleanup() {
set +e
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
}
if [ x${HOSTNAME} != "xbuildvm-01.online.rpmfusion.net" ] ; then
echo "${0}: Wrong host: run on buildvm-01" && exit 1
fi
for i in nvidia-driver ; do
for f in 41 42; do
pushd /mnt/koji/mash/nonfree/${f}-${i} &>/dev/null
appstream-builder --origin=rpmfusion.org --basename=appstream --verbose --veto-ignore=missing-parents --cache-dir=${tmp}/asb-md --min-icon-size=32 --output-dir=${tmp}/asb-md --packages-dir=x86_64/ --temp-dir=${tmp}/asb-icons
[ -e ${tmp}/asb-md/appstream-icons.tar.gz ] && modifyrepo_c --no-compress --simple-md-filenames ${tmp}/asb-md/appstream-icons.tar.gz x86_64/repodata/
[ -e ${tmp}/asb-md/appstream-ignore.xml.gz ] && modifyrepo_c --no-compress --simple-md-filenames ${tmp}/asb-md/appstream-ignore.xml.gz x86_64/repodata/
[ -e ${tmp}/asb-md/appstream-screenshots.tar.gz ] && modifyrepo_c --no-compress --simple-md-filenames ${tmp}/asb-md/appstream-screenshots.tar.gz x86_64/repodata/
modifyrepo_c --no-compress --simple-md-filenames ${tmp}/asb-md/appstream.xml.gz x86_64/repodata/
rm -rf ${tmp}/asb-md
popd &>/dev/null
done
done