1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 11:35:00 -05:00
pacman/scripts
Dave Reisner 968486ecc0 makepkg: validate updated pkgver before replacement
Validate the new pkgver efore blindly ramming it into the PKGBUILD.
This gives us good feedback and prevents corrupting the PKGBUILD, e.g.

==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: a horse is not a pkgver

As an additional failsafe, exchange a valid for invalid character as
command separator in @SEDINPLACE@ expressions. For even more paranoia,
exit if sed fails for any reason.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2013-10-15 12:40:53 +10:00
..
library Fix spelling errors using 'codespell' tool 2013-04-18 13:20:13 +10:00
po Update gitignore files for use with autoreconf 2013-07-22 13:27:23 +10:00
.gitignore makepkg: run locally with libtool style wrapper 2013-10-14 13:01:03 +10:00
Makefile.am makepkg: add LIBRARY variable 2013-10-14 13:01:10 +10:00
makepkg-template.pl.in Fix whitespace in makepkg.sh.in and makepkg-template.pl.in 2013-07-30 13:00:25 +10:00
makepkg-wrapper.sh.in makepkg: run locally with libtool style wrapper 2013-10-14 13:01:03 +10:00
makepkg.sh.in makepkg: validate updated pkgver before replacement 2013-10-15 12:40:53 +10:00
pacman-db-upgrade.sh.in scripts: Add color to pacman-db-upgrade 2013-03-08 17:04:39 +10:00
pacman-key.sh.in pacman-key: Do not reinterpret keys from revoked keyrings 2013-06-04 14:01:41 +10:00
pacman-optimize.sh.in scripts: Add color to pacman-optimize 2013-03-08 17:04:39 +10:00
pkgdelta.sh.in pkgdelta: fix improper passing of file argument 2013-03-14 11:47:11 +10:00
repo-add.sh.in repo-add; add option to remove existing package files from disk 2013-06-06 13:47:32 +10:00