mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-30 04:44:10 -04:00
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
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user