Don't break os.symlink if app names contain '/'

This commit is contained in:
Daniel Martí 2014-12-14 15:43:22 +01:00
parent 1268da7ac6
commit 606cda591d

View file

@ -868,7 +868,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
if current_version_file is not None \
and config['make_current_version_link'] \
and repodir == 'repo': # only create these
sanitized_name = re.sub('''[ '"&%?+=]''', '',
sanitized_name = re.sub('''[ '"&%?+=/]''', '',
app[config['current_version_name_source']])
apklinkname = sanitized_name + '.apk'
current_version_path = os.path.join(repodir, current_version_file)