diff --git a/build/pkgs/poetry_core/patches/5547.diff_bin b/build/pkgs/poetry_core/patches/5547.diff_bin new file mode 100644 index 00000000000..f4f5f4c83b8 --- /dev/null +++ b/build/pkgs/poetry_core/patches/5547.diff_bin @@ -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 diff --git a/build/pkgs/poetry_core/spkg-install.in b/build/pkgs/poetry_core/spkg-install.in index 37ac1a53437..4dc571e2c62 100644 --- a/build/pkgs/poetry_core/spkg-install.in +++ b/build/pkgs/poetry_core/spkg-install.in @@ -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 .