AddonManager: Allow to specify dependencies in addons are either Part or PartWorkbench

This commit is contained in:
Yorik van Havre
2017-08-03 11:37:47 -03:00
parent 3dd1c9fb51
commit b7110d0dfe

View File

@@ -735,8 +735,9 @@ class InstallWorker(QtCore.QThread):
for wb in depswb:
if wb.strip():
if not wb.strip() in FreeCADGui.listWorkbenches().keys():
ok = False
message += translate("AddonsInstaller","Missing workbench") + ": " + wb + ", "
if not wb.strip()+"Workbench" in FreeCADGui.listWorkbenches().keys():
ok = False
message += translate("AddonsInstaller","Missing workbench") + ": " + wb + ", "
elif l.startswith("pylibs="):
depspy = l.split("=")[1].split(",")
for pl in depspy: