diff options
author | Allan McRae <allan@archlinux.org> | 2017-04-17 10:30:05 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-05-08 10:53:53 +0200 |
commit | c6b04c04653ba9933fe978829148312e412a9ea7 (patch) | |
tree | c70702eba703754b94ec540ad7bb53d5fc8044e5 /scripts/makepkg.sh.in | |
parent | c0a5884b186c9e0e5c54e8515d0982fcba134073 (diff) | |
download | pacman-c6b04c04653ba9933fe978829148312e412a9ea7.tar.gz pacman-c6b04c04653ba9933fe978829148312e412a9ea7.tar.xz |
makepkg: create signature files outside of fakeroot
With recent version of gpg, signing within fakeroot works on the first
invocation, but fails on later runs. Sign all packages outside of fakeroot
to avoid this issue.
Fixes FS#49946.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index be0ea72e..43c7e328 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -769,8 +769,6 @@ create_package() { error "$(gettext "Failed to create package file.")" exit 1 # TODO: error code fi - - create_signature "$pkg_file" } create_debug_package() { @@ -868,8 +866,6 @@ create_srcpackage() { exit 1 # TODO: error code fi - create_signature "$pkg_file" - cd_safe "${startdir}" rm -rf "${srclinks}" } @@ -1625,6 +1621,9 @@ if (( SOURCEONLY )); then enter_fakeroot + msg "$(gettext "Signing package...")" + create_signature "$SRCPKGDEST/${pkgbase}-${fullver}${SRCEXT}" + msg "$(gettext "Source package created: %s")" "$pkgbase ($(date))" exit 0 fi @@ -1716,6 +1715,8 @@ else fi enter_fakeroot + + create_package_signatures fi # if inhibiting archive creation, go no further |