mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[Plugin installer] properly handle zip file names with a dash as a version suffix separator
This commit is contained in:
parent
e47d55f6e3
commit
5c1cc4a40d
@ -397,7 +397,11 @@ class Repositories(QObject):
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user