mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
fix fdroid build
with non-git repos
HEAD is really only in git. This was introduced in
a4e4310803
This commit is contained in:
parent
b1a943d562
commit
e37be9b063
1 changed files with 2 additions and 1 deletions
|
@ -992,7 +992,8 @@ def parse_metadata(metadatapath, check_vcs=False):
|
||||||
metadata_in_repo = os.path.join(build_dir, '.fdroid.yml')
|
metadata_in_repo = os.path.join(build_dir, '.fdroid.yml')
|
||||||
if not os.path.isfile(metadata_in_repo):
|
if not os.path.isfile(metadata_in_repo):
|
||||||
vcs, build_dir = fdroidserver.common.setup_vcs(app)
|
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):
|
if os.path.isfile(metadata_in_repo):
|
||||||
logging.debug('Including metadata from ' + metadata_in_repo)
|
logging.debug('Including metadata from ' + metadata_in_repo)
|
||||||
app.update(parse_metadata(metadata_in_repo))
|
app.update(parse_metadata(metadata_in_repo))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue