index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | watch-versions | 7 |
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 ' \ |