Skip to content

Commit

Permalink
Merge pull request #32100 from borysiasty/fix_dash_in_zip_filenames
Browse files Browse the repository at this point in the history
[Plugin installer] Fix handling zip file names with a dash as a version suffix separator
  • Loading branch information
borysiasty committed Oct 5, 2019
2 parents 3ec34e8 + 5c1cc4a commit 8de7f3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pyplugin_installer/installer_data.py
Expand Up @@ -397,7 +397,11 @@ def xmlDownloaded(self):
fileName = pluginNodes.item(i).firstChildElement("file_name").text().strip()
if not fileName:
fileName = QFileInfo(pluginNodes.item(i).firstChildElement("download_url").text().strip().split("?")[0]).fileName()
name = fileName.partition(".")[0]
match = re.match('(.*?)[.-]', fileName)
if match:
name = match.groups()[0]
else:
name = fileName
experimental = False
if pluginNodes.item(i).firstChildElement("experimental").text().strip().upper() in ["TRUE", "YES"]:
experimental = True
Expand Down

0 comments on commit 8de7f3a

Please sign in to comment.