diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-10-14 15:13:28 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-15 04:40:53 +0200 |
commit | 968486ecc0c20f3b075ad9b903b9df862621610a (patch) | |
tree | 7e05474af37372e7b2d6ed9b4df7e67c7b4524f9 /lib/libalpm/backup.c | |
parent | e049bb8bd6bb3b8aacf371abde937d2270cfa451 (diff) | |
download | pacman-968486ecc0c20f3b075ad9b903b9df862621610a.tar.gz pacman-968486ecc0c20f3b075ad9b903b9df862621610a.tar.xz |
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>
Diffstat (limited to 'lib/libalpm/backup.c')
0 files changed, 0 insertions, 0 deletions