pacman/scripts
Eli Schwartz f76bd2c6c1 makepkg: fix signing of source packages
In commit c6b04c0465 the signing stage was
moved out of fakeroot, and thus into the main control flow instead of
create_{,src}package

While the function for signing binary packages has logic to build
and gpg-sign multiple filenames, the source package never got this
special treatment. This would be fine, except it uses the standard
variables to set define the filename... like ${fullver}, which is
usually set beforehand, but in this case is not. We don't define fullver
globally as it's an internal implementation detail, except by sheer
coincidence if PKGVERFUNC is false due to improperly guarded code.

Result: source packages didn't end up signed. Instead, we raised a logic
error:

==> WARNING: Failed to sign package file somepackage-.src.tar.gz.

==> ERROR: An unknown error has occurred. Exiting...

Instead, let's just build the version inline, since we only use it once.

Reported-by: GaKu999 <g4ku999@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2020-10-21 11:17:14 +10:00
..
completion Add pacman-conf zsh completions 2020-09-03 12:55:34 +10:00
libmakepkg libmakepkg: extend compress.sh to also permit checking validity 2020-08-10 09:57:32 +10:00
po scripts/library: remove human_to_size 2019-11-06 15:52:21 +10:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
makepkg-template.pl.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
makepkg.sh.in makepkg: fix signing of source packages 2020-10-21 11:17:14 +10:00
meson.build meson: make non-symlink scripts install for real, and use a better wrapper 2019-11-26 10:49:57 +10:00
pacman-db-upgrade.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
pacman-key.sh.in pacman-key: change signing key to RSA4096 2020-06-15 19:17:41 +10:00
repo-add.sh.in repo-add: use more libmakepkg to handle common compression routines 2020-08-10 09:57:37 +10:00
wrapper.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00