pacman/scripts
Eli Schwartz 9c8d7a8093 libmakepkg/integrity: fix regression that broke --install
In commit c6b04c0465 package signing was
moved out of fakeroot, and as part of this process, the global pkgname
variable was modified in order to extract the built package names.

However, if a debug package was not available and added to the list of
packages, the function was aborted early, before the pkgname array was
restored, thereby corrupting the later stages of makepkg and
specifically the install_package function which needs to know which
pkgnames to install.

Fix this by inlining the debug package signing inside the `if` check,
and as added security switch to using `for pkg in "${pkgname[@]}"` as is
done in many other parts of makepkg, since package signing does not
depend on the value of pkgname for anything.

Additionally, since debug packages may not actually exist, check if the
package file exists first.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-03-15 11:30:20 +10:00
..
completion use pacman-conf in bash completion 2018-01-19 12:04:45 +10:00
libmakepkg libmakepkg/integrity: fix regression that broke --install 2018-03-15 11:30:20 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po makepkg: warn about dotfiles in package root 2017-01-04 13:59:14 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am makepkg: refactor archive compression for reusability 2017-12-07 15:46:04 +10:00
makepkg-template.pl.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
makepkg.sh.in makepkg: avoid false "Signing package(s)" msg when signing is disabled 2018-03-15 11:16:00 +10:00
pacman-db-upgrade.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
pacman-key.sh.in Added gpg-agent.conf to disable the gnupg scdaemon 2018-03-14 17:45:08 +10:00
pkgdelta.sh.in Replace @SIZECMD@ with POSIX-compatible command 2017-04-04 12:21:20 +10:00
repo-add.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
wrapper.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00