From b5b463a5ec05a64a91c37cacf15cc1018528abe4 Mon Sep 17 00:00:00 2001 From: "Rui Zhao (renyuneyun)" Date: Mon, 12 Jun 2017 18:04:30 +0100 Subject: [PATCH] fix !320 due to unintentionally reusing the same variable name --- fdroidserver/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 6bbaf827..f50ecda5 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -706,10 +706,10 @@ def insert_localized_app_metadata(apps): sourcedirs += glob.glob(os.path.join('build', '[A-Za-z]*', 'metadata', '[a-z][a-z]*')) sourcedirs += glob.glob(os.path.join('metadata', '[A-Za-z]*', '[a-z][a-z]*')) - for d in sorted(sourcedirs): - if not os.path.isdir(d): + for srcd in sorted(sourcedirs): + if not os.path.isdir(srcd): continue - for root, dirs, files in os.walk(d): + for root, dirs, files in os.walk(srcd): segments = root.split('/') packageName = segments[1] if packageName not in apps: