summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/lint_package
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-03-15 01:42:11 +0100
committerAllan McRae <allan@archlinux.org>2018-03-15 02:30:20 +0100
commit9c8d7a80932e23baed1fc247b56b4c5725f9eff4 (patch)
treeffce67f3b962f064853d4371e44e1a4b677f906e /scripts/libmakepkg/lint_package
parentc54621d81986e14c7d112350fdf288e74df7a8a8 (diff)
downloadpacman-9c8d7a80932e23baed1fc247b56b4c5725f9eff4.tar.gz
pacman-9c8d7a80932e23baed1fc247b56b4c5725f9eff4.tar.xz
libmakepkg/integrity: fix regression that broke --install
In commit c6b04c04653ba9933fe978829148312e412a9ea7 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>
Diffstat (limited to 'scripts/libmakepkg/lint_package')
0 files changed, 0 insertions, 0 deletions