129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
self.parent.status()
# Clean up placeholders in vbox
_ = [self.vbox.remove(c) for c in self.vbox.get_children()[3:]]
# Attach available downloads after checking dependencies
# e.g. newpl["depends"] = "streamtuner2 < 2.2.0, config >= 2.5"
dep = pluginconf.dependency()
for newpl in meta:
if dep.valid(newpl, log.DEBUG_VALIDITY) and dep.depends(newpl, log.DEBUG_DEPENDS):
self.add_plugin(newpl)
else:
log.DEBUG("plugin fails dependencies:", newpl)
# Readd some filler labels
|
>
|
>
|
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
self.parent.status()
# Clean up placeholders in vbox
_ = [self.vbox.remove(c) for c in self.vbox.get_children()[3:]]
# Attach available downloads after checking dependencies
# e.g. newpl["depends"] = "streamtuner2 < 2.2.0, config >= 2.5"
import pluginconf.depends
dep = pluginconf.depends.DependencyValidation()
dep.api = ["python", "streamtuner2"]
for newpl in meta:
if dep.valid(newpl, log.DEBUG_VALIDITY) and dep.depends(newpl, log.DEBUG_DEPENDS):
self.add_plugin(newpl)
else:
log.DEBUG("plugin fails dependencies:", newpl)
# Readd some filler labels
|