mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
[checkupdates] Remove UpdateCheckMode "RepoTrunk"
It's unclear whether this still works and we're not planning to maintain it.
This commit is contained in:
parent
81fdba452a
commit
b5424d40f1
2 changed files with 1 additions and 23 deletions
|
@ -341,26 +341,6 @@ def check_repomanifest(app: metadata.App, branch: Optional[str] = None) -> tuple
|
||||||
raise FDroidException(_("Couldn't find any version information"))
|
raise FDroidException(_("Couldn't find any version information"))
|
||||||
|
|
||||||
|
|
||||||
def check_repotrunk(app):
|
|
||||||
if app.RepoType == 'srclib':
|
|
||||||
build_dir = Path('build/srclib') / app.Repo
|
|
||||||
repotype = common.getsrclibvcs(app.Repo)
|
|
||||||
else:
|
|
||||||
build_dir = Path('build') / app.id
|
|
||||||
repotype = app.RepoType
|
|
||||||
|
|
||||||
if repotype not in ('git-svn', ):
|
|
||||||
raise MetaDataException(_('RepoTrunk update mode only makes sense in git-svn repositories'))
|
|
||||||
|
|
||||||
# Set up vcs interface and make sure we have the latest code...
|
|
||||||
vcs = common.getvcs(app.RepoType, app.Repo, build_dir)
|
|
||||||
|
|
||||||
vcs.gotorevision(None)
|
|
||||||
|
|
||||||
ref = vcs.getref()
|
|
||||||
return (ref, ref)
|
|
||||||
|
|
||||||
|
|
||||||
def try_init_submodules(app: metadata.App, last_build: metadata.Build, vcs: common.vcs):
|
def try_init_submodules(app: metadata.App, last_build: metadata.Build, vcs: common.vcs):
|
||||||
"""Try to init submodules if the last build entry uses them.
|
"""Try to init submodules if the last build entry uses them.
|
||||||
|
|
||||||
|
@ -559,8 +539,6 @@ def checkupdates_app(app: metadata.App) -> None:
|
||||||
elif mode.startswith('RepoManifest/'):
|
elif mode.startswith('RepoManifest/'):
|
||||||
tag = mode[13:]
|
tag = mode[13:]
|
||||||
(version, vercode) = check_repomanifest(app, tag)
|
(version, vercode) = check_repomanifest(app, tag)
|
||||||
elif mode == 'RepoTrunk':
|
|
||||||
(version, vercode) = check_repotrunk(app)
|
|
||||||
elif mode == 'HTTP':
|
elif mode == 'HTTP':
|
||||||
(version, vercode) = check_http(app)
|
(version, vercode) = check_http(app)
|
||||||
elif mode in ('None', 'Static'):
|
elif mode in ('None', 'Static'):
|
||||||
|
|
|
@ -453,7 +453,7 @@ valuetypes = {
|
||||||
["AutoUpdateMode"]),
|
["AutoUpdateMode"]),
|
||||||
|
|
||||||
FieldValidator("Update Check Mode",
|
FieldValidator("Update Check Mode",
|
||||||
r"^(Tags|Tags .+|RepoManifest|RepoManifest/.+|RepoTrunk|HTTP|Static|None)$",
|
r"^(Tags|Tags .+|RepoManifest|RepoManifest/.+|HTTP|Static|None)$",
|
||||||
["UpdateCheckMode"])
|
["UpdateCheckMode"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue