diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2018-11-30 10:55:11 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2018-11-30 10:55:11 -0500 |
commit | 4dd15f28bf82edd194d483440ff9533ccc2d2d53 (patch) | |
tree | f89575f0209b63b4c495878bdd582361e2d34b6c /libre-testing/pacman/0003-makepkg-check_pkgver-Report-what-the-bad-pkgver-is.patch | |
parent | e91cf7d32e9ceac32837bcb578405047e7ef717c (diff) | |
download | abslibre-4dd15f28bf82edd194d483440ff9533ccc2d2d53.tar.gz abslibre-4dd15f28bf82edd194d483440ff9533ccc2d2d53.tar.bz2 abslibre-4dd15f28bf82edd194d483440ff9533ccc2d2d53.zip |
Moving pacman-5.1.1-1.parabola8 to [libre-testing]
Diffstat (limited to 'libre-testing/pacman/0003-makepkg-check_pkgver-Report-what-the-bad-pkgver-is.patch')
-rw-r--r-- | libre-testing/pacman/0003-makepkg-check_pkgver-Report-what-the-bad-pkgver-is.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libre-testing/pacman/0003-makepkg-check_pkgver-Report-what-the-bad-pkgver-is.patch b/libre-testing/pacman/0003-makepkg-check_pkgver-Report-what-the-bad-pkgver-is.patch new file mode 100644 index 000000000..987473f85 --- /dev/null +++ b/libre-testing/pacman/0003-makepkg-check_pkgver-Report-what-the-bad-pkgver-is.patch @@ -0,0 +1,31 @@ +From fb1606f4bba3386fd8d1cc710423c6e629060b86 Mon Sep 17 00:00:00 2001 +From: Luke Shumaker <lukeshu@parabola.nu> +Date: Mon, 6 Aug 2018 23:51:47 -0400 +Subject: [PATCH 3/4] makepkg: check_pkgver: Report what the bad pkgver is + +For consistency with check_epoch and check_pkgrel. + +I think that this is important because if there are multiple +provides/depends/whatever that include a version, and one of them is +malformed, including the bad version in the error message identified +which one is the problem. +--- + scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in +index c105212b..65216b64 100644 +--- a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in ++++ b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in +@@ -38,7 +38,7 @@ check_pkgver() { + fi + + if [[ $ver = *[[:space:]/:-]* ]]; then +- error "$(gettext "%s is not allowed to contain colons, forward slashes, hyphens or whitespace.")" "pkgver${type:+ in $type}" ++ error "$(gettext "%s is not allowed to contain colons, forward slashes, hyphens or whitespace; got %s.")" "pkgver${type:+ in $type}" "$ver" + return 1 + fi + } +-- +2.18.0 + |