-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck-completeness
More file actions
executable file
·48 lines (45 loc) · 1000 Bytes
/
check-completeness
File metadata and controls
executable file
·48 lines (45 loc) · 1000 Bytes
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
#!/bin/sh
# Check if the build lists contain all tarballs released upstream
# so we can catch new components more easily
# check-completeness kf6 6.18.0
# check-completeness pd 6.4.5
# check-completeness kapps 25.08.1
#
COMPONENT="$1"
VERSION="$2"
if [ -z "$COMPONENT" -o -z "$VERSION" ]; then
echo "Usage: $0 COMPONENT VERSION"
exit 1
fi
SUBDIR=""
case ${COMPONENT} in
kapps)
UPSTREAM_COMPONENT=release-service
SUBDIR=src/
;;
pd)
UPSTREAM_COMPONENT=plasma
;;
*)
UPSTREAM_COMPONENT="$COMPONENT"
;;
esac
wget -q -O - https://download.kde.org/stable/${UPSTREAM_COMPONENT}/${VERSION}/${SUBDIR} |grep -E "<a href=\"[^\"]*-${VERSION}.tar.xz\"" |sed -e 's,.*href=",,;s,".*,,' |while read r; do
i="$(echo $r |sed -e "s,-${VERSION}\.tar\.xz,,")"
case "$i" in
aurorae)
PKG=kwin-aurorae
;;
ocean-sound-theme)
PKG=sound-theme-ocean
;;
kdeconnect-kde)
PKG=kdeconnect
;;
*)
PKG="$i"
esac
if ! grep -qE "openmandriva/${PKG}($| )" ${COMPONENT}.buildlist; then
echo "$r"
fi
done