[pacman-dev] [PATCH 1/1] makepkg: send output from clean_up to stderr
From: Christian Hesse <mail@eworm.de> This is required when redirecting checksums to PKGBUILD: makepkg --clean --geninteg >> PKGBUILD Signed-off-by: Christian Hesse <mail@eworm.de> --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 183e1a3e..3017f31b 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1101,7 +1101,7 @@ while [[ $1 ]]; do done # setup signal traps -trap 'clean_up' 0 +trap 'clean_up >&2' 0 for signal in TERM HUP QUIT; do trap "trap_exit $signal \"$(gettext "%s signal caught. Exiting...")\" \"$signal\"" "$signal" done
On 10/28/19 11:22 AM, Christian Hesse wrote:
From: Christian Hesse <mail@eworm.de>
This is required when redirecting checksums to PKGBUILD:
makepkg --clean --geninteg >> PKGBUILD
Why would anyone ever use --clean and --geninteg in the same run? We should make sure they cannot do that, rather than changing where the output of makepkg --clean *without* --geninteg is sent.
--- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 183e1a3e..3017f31b 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1101,7 +1101,7 @@ while [[ $1 ]]; do done
# setup signal traps -trap 'clean_up' 0 +trap 'clean_up >&2' 0 for signal in TERM HUP QUIT; do trap "trap_exit $signal \"$(gettext "%s signal caught. Exiting...")\" \"$signal\"" "$signal" done
-- Eli Schwartz Bug Wrangler and Trusted User
Eli Schwartz <eschwartz@archlinux.org> on Mon, 2019/10/28 11:31:
On 10/28/19 11:22 AM, Christian Hesse wrote:
From: Christian Hesse <mail@eworm.de>
This is required when redirecting checksums to PKGBUILD:
makepkg --clean --geninteg >> PKGBUILD
Why would anyone ever use --clean and --geninteg in the same run?
Found this in a really old script... Not sure why I did that.
We should make sure they cannot do that, rather than changing where the output of makepkg --clean *without* --geninteg is sent.
Fine with me. :) -- main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
participants (2)
-
Christian Hesse
-
Eli Schwartz