AddonManager: Show warning for obsolete addons

This commit is contained in:
Yorik van Havre
2019-01-09 19:57:19 -02:00
parent 5874e6b115
commit 84ad0c2f6f

View File

@@ -58,6 +58,7 @@ from addonmanager_utilities import urlopen
NOGIT = False # for debugging purposes, set this to True to always use http downloads
MACROS_BLACKLIST = ["BOLTS","WorkFeatures","how to install","PartsLibrary","FCGear"]
OBSOLETE = ["assembly2"]
if sys.version_info.major < 3:
import StringIO as io
@@ -774,6 +775,8 @@ class ShowWorker(QtCore.QThread):
desc = re.findall("<meta property=\"og:description\" content=\"(.*?)\"",p)
if desc:
desc = desc[0]
if self.repos[self.idx][0] in OBSOLETE:
desc += " <b>This add-on is marked as obsolete</b> - This usually means it is no longer maintained, and some more advanced add-on in this list provides the same functionality."
else:
desc = "Unable to retrieve addon description"
self.repos[self.idx].append(desc)