1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Merge branch 'two-fixes' into 'master'

Two fixes

See merge request fdroid/fdroidserver!628
This commit is contained in:
Marcus 2019-02-22 22:00:47 +00:00
commit c912d2e1a8
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ def make(apps, sortedids, apks, repodir, archive):
mirrorcheckfailed = False
mirrors = []
for mirror in sorted(common.config.get('mirrors', [])):
for mirror in common.config.get('mirrors', []):
base = os.path.basename(urllib.parse.urlparse(mirror).path.rstrip('/'))
if common.config.get('nonstandardwebroot') is not True and base != 'fdroid':
logging.error(_("mirror '%s' does not end with 'fdroid'!") % mirror)

View File

@ -249,8 +249,8 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base,
common.assert_config_keystore(config)
for root, dirs, files in os.walk(cibase):
for d in ('fdroid', '.git', '.gradle'):
if d in dirs:
for d in dirs:
if d == '.git' or d == '.gradle' or (d == 'fdroid' and root == cibase):
dirs.remove(d)
for f in files:
if f.endswith('-debug.apk'):