Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/watch-versions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-19 11:02:04 +0200
committerErich Eckner <git@eckner.net>2020-06-19 11:02:04 +0200
commit2eb74261245585dc745e405a48b39d365f21f49d (patch)
treeea873e20f999d8b885b3a072e8eb57918cde3af0 /watch-versions
parent88372bc202b7df7914588a623748d0fd6292e826 (diff)
watch-versions: recognize linux-olpc-xo1
Diffstat (limited to 'watch-versions')
-rwxr-xr-xwatch-versions7
1 files changed, 6 insertions, 1 deletions
diff --git a/watch-versions b/watch-versions
index 85d16e9..9aebcf5 100755
--- a/watch-versions
+++ b/watch-versions
@@ -97,12 +97,17 @@ case "${pkgbase}" in
*)
# It might be a (slightly modified) copy of an upstream package:
# Then we simply take the upstream pkgver.
+ if [ "${pkgbase}" = 'linux-olpc-xo1' ]; then
+ _pkgbase='linux'
+ else
+ _pkgbase="${pkgbase}"
+ fi
newver=$(
for repository in /var/lib/pacman/sync/*.db; do
bsdtar -tf "${repository}"
done \
| sed '
- s@^'"${pkgbase//./\.}"'-\([^-]\+\)-[0-9.]\+/desc$@\1@
+ s@^'"${_pkgbase//./\.}"'-\([^-]\+\)-[0-9.]\+/desc$@\1@
t
d
' \