Skip to content

Commit

Permalink
Revert 5c1cc4a. I wasn't aware dashes in plugin directory names have …
Browse files Browse the repository at this point in the history
…been authorized at some point and we have a number of affected plugins now (please note personally I am opposed to putting dashes to Python package names). Fixes #32968.

(cherry picked from commit ffb38e8)
  • Loading branch information
borysiasty authored and nyalldawson committed Nov 21, 2019
1 parent 6bc027b commit 941a20a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/pyplugin_installer/installer_data.py
Expand Up @@ -397,11 +397,7 @@ 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()
match = re.match('(.*?)[.-]', fileName)
if match:
name = match.groups()[0]
else:
name = fileName
name = fileName.partition(".")[0]
experimental = False
if pluginNodes.item(i).firstChildElement("experimental").text().strip().upper() in ["TRUE", "YES"]:
experimental = True
Expand Down

0 comments on commit 941a20a

Please sign in to comment.