From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:master commit in: bin/
Date: Tue, 29 Aug 2023 01:38:27 +0000 (UTC) [thread overview]
Message-ID: <1693272077.fb45df369b4be7061fc14f5eb361c4d6c97e3f02.sam@gentoo> (raw)
commit: fb45df369b4be7061fc14f5eb361c4d6c97e3f02
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 01:21:04 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 01:21:17 2023 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=fb45df36
bin/merge-driver-ekeyword: mangle exit code correctly
Fixes: 263e3d64adac1ee2968233e151d1ee590532f42d
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/merge-driver-ekeyword | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/bin/merge-driver-ekeyword b/bin/merge-driver-ekeyword
index e59e10c..0235a98 100755
--- a/bin/merge-driver-ekeyword
+++ b/bin/merge-driver-ekeyword
@@ -1,6 +1,6 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 or later
"""
@@ -127,8 +127,10 @@ def main(argv: Sequence[str]) -> int:
sys.exit(result)
else:
result = os.system(f"git merge-file -L HEAD -L base -L ours {A} {O} {B}")
+ result = os.waitstatus_to_exitcode(result)
+ if result < 0 or result >= 128:
+ sys.exit(-1)
sys.exit(result)
-
if __name__ == "__main__":
main(sys.argv)
next reply other threads:[~2023-08-29 1:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 1:38 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-24 18:05 [gentoo-commits] proj/gentoolkit:master commit in: bin/ Matt Turner
2024-06-24 18:05 Matt Turner
2024-06-24 18:05 Matt Turner
2024-05-25 3:45 Matt Turner
2024-05-25 3:45 Matt Turner
2024-05-25 3:45 Matt Turner
2023-08-29 15:48 Mike Gilbert
2023-08-29 0:51 Sam James
2022-12-03 13:54 Michał Górny
2022-12-03 13:54 Michał Górny
2022-07-28 15:29 Brian Dolbec
2022-07-09 19:50 Brian Dolbec
2022-05-19 4:30 Sam James
2021-03-12 2:31 Matt Turner
2021-02-25 0:06 Matt Turner
2020-12-31 22:11 Matt Turner
2020-03-16 14:24 Ben Kohler
2016-10-17 17:39 Paul Varner
2016-06-06 21:15 Paul Varner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1693272077.fb45df369b4be7061fc14f5eb361c4d6c97e3f02.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox