forked from pool/git-deps
Matej Cepl
db56bdb965
- Fix setup.py to correctly identify the project packages git_deps
and git_deps/listener. These were not being packaged and as a
result the git-deps command was simply failing
- Fix issue with unbuffered text I/O under python3, as identified in
6beebe034b
I couldn't make sense of the "test" which accompanies the source code. i think it's out of date, so I didn't add any tests
OBS-URL: https://build.opensuse.org/request/show/844902
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git-deps?expand=0&rev=4
30 lines
918 B
Diff
30 lines
918 B
Diff
From 8d9a7d6dacad4a033f2a4c800ff32137e6e894da Mon Sep 17 00:00:00 2001
|
|
From: Bruce Rogers <brogers@suse.com>
|
|
Date: Wed, 28 Oct 2020 18:09:24 -0600
|
|
Subject: [PATCH] Fix issue with unbuffered text I/O under python3
|
|
|
|
This fix is in an upstream pull request, as shown here:
|
|
https://github.com/aspiers/git-deps/pull/93/commits/6beebe034b5c6fd19d73edd774dbf424ea183fee
|
|
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
git_deps/cli.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/git_deps/cli.py b/git_deps/cli.py
|
|
index 9e8b0ab..7882088 100755
|
|
--- a/git_deps/cli.py
|
|
+++ b/git_deps/cli.py
|
|
@@ -135,7 +135,7 @@ def main(args):
|
|
if options.serve:
|
|
serve(options)
|
|
else:
|
|
- sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
|
|
+ sys.stdout = os.fdopen(sys.stdout.fileno(), 'w')
|
|
try:
|
|
cli(options, args)
|
|
except InvalidCommitish as e:
|
|
--
|
|
2.29.0
|
|
|