mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	fetch_srclib: fetch source code
This commit is contained in:
		
							parent
							
								
									cbbb255551
								
							
						
					
					
						commit
						5ae15532f0
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -438,7 +438,7 @@ plugin_fetchsrclibs:
 | 
			
		|||
    - curl https://gitlab.com/fdroid/fdroiddata/-/archive/${commitid}/fdroiddata-${commitid}.tar.gz
 | 
			
		||||
          | tar -xz --directory=fdroiddata --strip-components=1
 | 
			
		||||
    - cd fdroiddata
 | 
			
		||||
    - fdroid fetchsrclibs freemap.opentrail:9 --verbose
 | 
			
		||||
    - fdroid fetchsrclibs freemap.opentrail:4 --verbose
 | 
			
		||||
    - test -d build/freemap.opentrail/.git
 | 
			
		||||
    - test -d build/srclib/andromaps/.git
 | 
			
		||||
    - test -d build/srclib/freemaplib/.git
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,8 +29,12 @@ def main():
 | 
			
		|||
    srclibpaths = []
 | 
			
		||||
    for appid, app in apps.items():
 | 
			
		||||
        vcs, _ignored = common.setup_vcs(app)
 | 
			
		||||
        vcs.gotorevision('HEAD', refresh=False)
 | 
			
		||||
        for build in app.get('Builds', []):
 | 
			
		||||
            vcs.gotorevision(build.commit, refresh=False)
 | 
			
		||||
            if build.submodules:
 | 
			
		||||
                vcs.initsubmodules()
 | 
			
		||||
            else:
 | 
			
		||||
                vcs.deinitsubmodules()
 | 
			
		||||
            for lib in build.srclibs:
 | 
			
		||||
                srclibpaths.append(common.getsrclib(lib, srclib_dir, prepare=False, build=build))
 | 
			
		||||
    print('Set up srclibs:')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue