* remove redundant comments
This commit is contained in:
+1
-4
@@ -260,20 +260,17 @@ class Builder:
|
|||||||
|
|
||||||
def check_build_dependencies(self):
|
def check_build_dependencies(self):
|
||||||
"""fail if dependencies not satisfied"""
|
"""fail if dependencies not satisfied"""
|
||||||
#TODO: we'll have to do better than plugging a fxn here
|
|
||||||
# find out the build dependencies that are not satisfied...
|
# find out the build dependencies that are not satisfied...
|
||||||
dep_unsatis = []
|
dep_unsatis = []
|
||||||
for dep in self.spec.source.buildDeps:
|
for dep in self.spec.source.buildDeps:
|
||||||
if not dependency.installed_satisfies_dep(dep):
|
if not dependency.installed_satisfies_dep(dep):
|
||||||
dep_unsatis.append(dep)
|
dep_unsatis.append(dep)
|
||||||
|
|
||||||
# FIXME: take care of the required buildDeps...
|
|
||||||
# For now just report an error!
|
|
||||||
if dep_unsatis:
|
if dep_unsatis:
|
||||||
ctx.ui.error(_("Unsatisfied Build Dependencies:"))
|
ctx.ui.error(_("Unsatisfied Build Dependencies:"))
|
||||||
for dep in dep_unsatis:
|
for dep in dep_unsatis:
|
||||||
ctx.ui.warning(dep.package)
|
ctx.ui.warning(dep.package)
|
||||||
# FIXME: raise an exception if ignore-depends not given
|
|
||||||
if not ctx.config.get_option('ignore_dependency'):
|
if not ctx.config.get_option('ignore_dependency'):
|
||||||
raise Error(_('Cannot build package due to unsatisfied build dependencies'))
|
raise Error(_('Cannot build package due to unsatisfied build dependencies'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user