From 2eb74261245585dc745e405a48b39d365f21f49d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Jun 2020 11:02:04 +0200 Subject: watch-versions: recognize linux-olpc-xo1 --- watch-versions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'watch-versions') 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 ' \ -- cgit v1.2.3-70-g09d2