mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Merge branch 'altstore-index-fix' into 'master'
🐛 index fix: skip altstore when no IPAs present See merge request fdroid/fdroidserver!1473
This commit is contained in:
		
						commit
						e45e37b2df
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1766,6 +1766,10 @@ def make_altstore(apps, apks, config, repodir, pretty=False):
 | 
			
		|||
    https://faq.altstore.io/distribute-your-apps/make-a-source
 | 
			
		||||
    https://faq.altstore.io/distribute-your-apps/updating-apps
 | 
			
		||||
    """
 | 
			
		||||
    if not any(Path(repodir).glob('*.ipa')):
 | 
			
		||||
        # no IPA files present in repo, nothing to do here, exiting early
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    indent = 2 if pretty else None
 | 
			
		||||
    # for now alt-store support is english only
 | 
			
		||||
    for lang in ['en']:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -869,6 +869,8 @@ class AltstoreIndexTest(unittest.TestCase):
 | 
			
		|||
        with tempfile.TemporaryDirectory() as tmpdir, TmpCwd(tmpdir):
 | 
			
		||||
            repodir = Path(tmpdir) / 'repo'
 | 
			
		||||
            repodir.mkdir()
 | 
			
		||||
            with open(repodir / "fake.ipa", "w") as f:
 | 
			
		||||
                f.write("")
 | 
			
		||||
 | 
			
		||||
            fdroidserver.index.make_altstore(
 | 
			
		||||
                apps,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue