1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

fix(nightly): workaround for broken os.walk and more logging

This commit is contained in:
WrenIX 2024-08-28 23:56:55 +02:00
parent 5276d9880f
commit d9aab228e2
No known key found for this signature in database
GPG Key ID: 7AFDB012974B1BB5

View File

@ -430,7 +430,22 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base,
config = common.read_config() config = common.read_config()
common.assert_config_keystore(config) common.assert_config_keystore(config)
logging.debug(
_('Run over {cibase} to find -debug.apk. PS: repo_basedir is {repo_basedir}').format(
cibase=cibase,
repo_basedir=repo_basedir
)
)
for root, dirs, files in os.walk(cibase): for root, dirs, files in os.walk(cibase):
if root.startswith(repo_basedir):
logging.error(
_('Broken dirs.remove.d(d): {root} is part of {repo_basedir} and should not be scanned').format(
root=root,
repo_basedir=repo_basedir
)
)
continue
for d in dirs: for d in dirs:
if d == '.git' or d == '.gradle' or (d == 'fdroid' and root == cibase): if d == '.git' or d == '.gradle' or (d == 'fdroid' and root == cibase):
dirs.remove(d) dirs.remove(d)