From 671d1eba4c1dd099cc439e2271a8b8e78f529808 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Mon, 20 Feb 2023 11:59:16 +0100 Subject: [PATCH] Fix compare of Path objects --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 4595ebab..275cfa40 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -971,7 +971,7 @@ def getvcs(vcstype, remote, local): if vcstype == 'bzr': return vcs_bzr(remote, local) if vcstype == 'srclib': - if local != os.path.join('build', 'srclib', remote): + if local != Path('build', 'srclib', remote): raise VCSException("Error: srclib paths are hard-coded!") return getsrclib(remote, os.path.join('build', 'srclib'), raw=True) if vcstype == 'svn':