1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 11:35:00 -05:00
pacman/scripts
Dave Reisner cbd6c300b5 makepkg: refactor check_sanity, give it some sanity of its own
Break apart each of the blocks into their own separate functions. And,
instead of the hand crafted eval statements, reuse the logic from
pkgbuild-introspection[0] to abstract away the complexities of parsing
bash.

This commit fixes at least 3 bugs in check_sanity:

1) The wrong variable is shown for the error which would be thrown
when, e.g.  pkgname=('foopkg' 'bar^pkg')
2) The "arch" variable is not sanity checked when the PKGBUILD has
an arch override, but only one output package.
3) https://bugs.archlinux.org/task/40361

Lastly, there's some string changes here which should help to clarify
a few errors emitted in the linting process.

[0] https://github.com/falconindy/pkgbuild-introspection
2014-08-08 13:44:00 +10:00
..
library Consistently use 'directory' instead of 'folder' 2014-01-28 21:37:00 +10:00
po Do not remove source code references in PO/POT files 2014-02-02 16:32:55 +10:00
.gitignore makepkg: run locally with libtool style wrapper 2013-10-14 13:01:03 +10:00
Makefile.am Do not check makepkg-wrapper for standard options 2014-05-23 16:02:18 +10:00
makepkg-template.pl.in Update copyright years for 2014 2014-01-06 14:38:50 +10:00
makepkg-wrapper.sh.in Update copyright years for 2014 2014-01-06 14:38:50 +10:00
makepkg.sh.in makepkg: refactor check_sanity, give it some sanity of its own 2014-08-08 13:44:00 +10:00
pacman-db-upgrade.sh.in Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
pacman-key.sh.in Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
pacman-optimize.sh.in Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
pkgdelta.sh.in Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
repo-add.sh.in repo-add: declare pkgbase as local 2014-03-27 15:46:07 +10:00