diff options
author | Erich Eckner <git@eckner.net> | 2021-04-30 21:38:10 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-30 21:38:10 +0200 |
commit | 5425abbbdf7365c9261fc706922f1bb212736201 (patch) | |
tree | 2ad6296365db4361459c41d5c09cb6c6b4211741 /fpc-svn | |
parent | 4d7d593a33c6065a7abab16ca3f03f40447c1580 (diff) | |
download | archlinuxewe-5425abbbdf7365c9261fc706922f1bb212736201.tar.xz |
fpc-svn,fpc-docs-svn: fix pkgver() for checkVersions
Diffstat (limited to 'fpc-svn')
-rw-r--r-- | fpc-svn/PKGBUILD | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fpc-svn/PKGBUILD b/fpc-svn/PKGBUILD index af859dd9a..4a23c54c0 100644 --- a/fpc-svn/PKGBUILD +++ b/fpc-svn/PKGBUILD @@ -23,7 +23,17 @@ source=() sha512sums=() pkgver() { - pacman -Q fpc-src-svn \ + { + pacman -Q fpc-src-svn 2>/dev/null \ + || { + pacman -Ss fpc-src-svn \ + | sed ' + s@^\S\+/\(fpc-src-svn\s\+\)@\1@ + t + d + ' + } + } \ | sed ' s@^.* @@ s@-.*$@@ |