From d9aab228e2d26ded836c88ae1d3c0a05ce1adb2f Mon Sep 17 00:00:00 2001 From: WrenIX Date: Wed, 28 Aug 2024 23:56:55 +0200 Subject: [PATCH] fix(nightly): workaround for broken os.walk and more logging --- fdroidserver/nightly.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fdroidserver/nightly.py b/fdroidserver/nightly.py index 9c2c7175..04c43cb7 100644 --- a/fdroidserver/nightly.py +++ b/fdroidserver/nightly.py @@ -430,7 +430,22 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base, config = common.read_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): + 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: if d == '.git' or d == '.gradle' or (d == 'fdroid' and root == cibase): dirs.remove(d)