mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
metadata: remove git repo handling from metadata parsing
This is a vestige of implementing builds from a .fdroid.yml file directly in the app's source repo. It was never fully complete and seems to not be used in any apps in fdroiddata. This makes `fdroid build --all` runs much faster since it does not need to do any git handling for apps that do not have any new builds to run.4e8e29794948689281a4e431080e37be9b06e775d330c
This commit is contained in:
parent
598c87c78f
commit
dbf80ad771
4 changed files with 47 additions and 25 deletions
|
|
@ -21,12 +21,14 @@ def main():
|
|||
options = parser.parse_args()
|
||||
common.options = options
|
||||
pkgs = common.read_pkg_args(options.appid, True)
|
||||
allapps = metadata.read_metadata(pkgs, check_vcs=True)
|
||||
allapps = metadata.read_metadata(pkgs)
|
||||
apps = common.read_app_args(options.appid, allapps, True)
|
||||
srclib_dir = os.path.join('build', 'srclib')
|
||||
os.makedirs(srclib_dir, exist_ok=True)
|
||||
srclibpaths = []
|
||||
for appid, app in apps.items():
|
||||
vcs, _ignored = common.setup_vcs(app)
|
||||
vcs.gotorevision('HEAD', refresh=False)
|
||||
for build in app.get('Builds', []):
|
||||
for lib in build.srclibs:
|
||||
srclibpaths.append(common.getsrclib(lib, srclib_dir, build=build))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue