diff options
author | Erich Eckner <git@eckner.net> | 2020-06-19 11:02:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-19 11:02:04 +0200 |
commit | 2eb74261245585dc745e405a48b39d365f21f49d (patch) | |
tree | ea873e20f999d8b885b3a072e8eb57918cde3af0 | |
parent | 88372bc202b7df7914588a623748d0fd6292e826 (diff) | |
download | devops-2eb74261245585dc745e405a48b39d365f21f49d.tar.xz |
watch-versions: recognize linux-olpc-xo1
-rwxr-xr-x | watch-versions | 7 |
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 ' \ |