1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-05 06:50:10 +01:00

fix fdroid build with non-git repos

HEAD is really only in git.  This was introduced in
a4e4310803
This commit is contained in:
Hans-Christoph Steiner 2016-12-01 23:29:38 +01:00
parent b1a943d562
commit e37be9b063

View File

@ -992,7 +992,8 @@ def parse_metadata(metadatapath, check_vcs=False):
metadata_in_repo = os.path.join(build_dir, '.fdroid.yml')
if not os.path.isfile(metadata_in_repo):
vcs, build_dir = fdroidserver.common.setup_vcs(app)
vcs.gotorevision('HEAD') # HEAD since we can't know where else to go
if isinstance(vcs, fdroidserver.common.vcs_git):
vcs.gotorevision('HEAD') # HEAD since we can't know where else to go
if os.path.isfile(metadata_in_repo):
logging.debug('Including metadata from ' + metadata_in_repo)
app.update(parse_metadata(metadata_in_repo))