1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Better @string globbing, should fix some AutoNames

This commit is contained in:
Daniel Martí 2013-06-27 21:39:00 +02:00
parent 09a781977c
commit c2c1792727

View File

@ -884,7 +884,7 @@ def fetch_real_name(app_dir):
name2 = None name2 = None
string_search= re.compile(r'.*"'+id+'".*>([^<]+?)<.*').search string_search= re.compile(r'.*"'+id+'".*>([^<]+?)<.*').search
for xmlfile in glob.glob(os.path.join( for xmlfile in glob.glob(os.path.join(
app_dir, 'res', 'values', 'strings*.xml')): app_dir, 'res', 'values', '*string*.xml')):
for line in file(xmlfile): for line in file(xmlfile):
if name2 is not None: if name2 is not None:
break break