Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/poetry_core/patches/5547.diff_bin: New
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 26, 2022
1 parent 5f29fb6 commit 0804b62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/pkgs/poetry_core/patches/5547.diff_bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -urB a/poetry/core/vcs/__init__.py b/poetry/core/vcs/__init__.py
--- a/poetry/core/vcs/__init__.py 2022-02-27 20:15:29.000000000 -0800
+++ b/poetry/core/vcs/__init__.py 2022-05-05 10:26:37.248645073 -0700
@@ -20,7 +20,7 @@
)
).strip()

- vcs = Git(Path(git_dir))
+ vcs = Git(Path(git_dir)) if git_dir.startswith(str(directory.resolve())) else None

except (subprocess.CalledProcessError, OSError, RuntimeError):
vcs = None
2 changes: 2 additions & 0 deletions build/pkgs/poetry_core/spkg-install.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cd src
# Work around https://github.com/python-poetry/poetry/issues/5547
patch -p1 --posix --binary < "../patches/5547.diff_bin" || sdh_die
sdh_pip_install .

0 comments on commit 0804b62

Please sign in to comment.