chiark / gitweb /
fix !320 due to unintentionally reusing the same variable name
authorRui Zhao (renyuneyun) <renyuneyun@gmail.com>
Mon, 12 Jun 2017 17:04:30 +0000 (18:04 +0100)
committerRui Zhao (renyuneyun) <renyuneyun@gmail.com>
Mon, 12 Jun 2017 17:09:00 +0000 (18:09 +0100)
fdroidserver/update.py

index 6bbaf827a4cdb0d92b66389ae858f1a7ccccc070..f50ecda53ffa10aed31bb21fed2d07c518da82c2 100644 (file)
@@ -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: