summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-25 11:24:14 +0200
committerErich Eckner <git@eckner.net>2017-09-25 11:24:14 +0200
commit053c427922e197d9105c911064b7783c1efb66d6 (patch)
tree28ad71afc607165b1a2d9acfaf86e9fff6e4d887
parent36dc7f9929b21895bc6dce75f99f32378a042351 (diff)
downloadarchlinuxewe.git.save-053c427922e197d9105c911064b7783c1efb66d6.tar.xz
checkVersions: correctly handle perl-perl-metrics-simple
-rwxr-xr-xcheckVersions9
1 files changed, 5 insertions, 4 deletions
diff --git a/checkVersions b/checkVersions
index 321c4c45..c87d8a32 100755
--- a/checkVersions
+++ b/checkVersions
@@ -334,13 +334,14 @@ then
sed "s|^v\?[0-9.]*||" | \
sed 's|\.|\\\.|'
)
- if [ "${pkgname}" == 'perl-chi' ]
+ if [ "${pkgname}" = 'perl-chi' ] || \
+ [ "${pkgname}" = 'perl-perl-metrics-simple' ]
then
pre='s|\(\...\)$|\10|'
post='s|\(\...\)0$|\1|'
- elif [ "${pkgname}" == 'perl-opengl' ] || \
- [ "${pkgname}" == 'perl-array-diff' ] || \
- [ "${pkgname}" == 'perl-module-cpants-analyse' ]
+ elif [ "${pkgname}" = 'perl-opengl' ] || \
+ [ "${pkgname}" = 'perl-array-diff' ] || \
+ [ "${pkgname}" = 'perl-module-cpants-analyse' ]
then
pre='s|\(\...\)\(.\)|\1.\2|'
post='s|\(\...\)\.\(.\)|\1\2|'