From f7790e75cda7da810e3319840b01a44119676183 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 10 Mar 2026 11:21:48 +0100 Subject: [PATCH] build: use placeholder vcs() instance for 'hg' til its purged There are a couple of active apps that use `RepoType: hg`, but they are both no longer developed. `setup_vcs()` is called before the check whether the build actually needs to run. So it needs to return a `vcs()` instance or it will try to run the build again. follow up from !1662 --- fdroidserver/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 7b7bfc7a..efeae929 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1544,6 +1544,8 @@ def getvcs(vcstype, remote, local): ) if vcstype == 'git-svn': return vcs_gitsvn(remote, local) + if vcstype == 'hg': + return vcs(remote, local) # placeholder until all RepoType: hg apps are removed if vcstype == 'srclib': if str(local) != os.path.join('build', 'srclib', str(remote)): raise VCSException("Error: srclib paths are hard-coded!")