From: Rui Zhao (renyuneyun) Date: Mon, 12 Jun 2017 17:04:30 +0000 (+0100) Subject: fix !320 due to unintentionally reusing the same variable name X-Git-Tag: 0.8~44^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b5b463a5ec05a64a91c37cacf15cc1018528abe4;p=fdroidserver.git fix !320 due to unintentionally reusing the same variable name --- 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: