[gnome-build-meta/abderrahim/misc-vm-fixes: 3/5] plugins/collect_initial_scripts.py: remove check for sources and runtime deps
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/misc-vm-fixes: 3/5] plugins/collect_initial_scripts.py: remove check for sources and runtime deps
- Date: Mon, 30 Mar 2020 19:12:27 +0000 (UTC)
commit c9fb67a59ffab93a98680c5d26cb0225f0a20b77
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Feb 14 08:21:55 2020 +0100
plugins/collect_initial_scripts.py: remove check for sources and runtime deps
Simply tell buildstream that they're not supported instead
plugins/collect_initial_scripts.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/plugins/collect_initial_scripts.py b/plugins/collect_initial_scripts.py
index fe3b346d..09b18fc7 100644
--- a/plugins/collect_initial_scripts.py
+++ b/plugins/collect_initial_scripts.py
@@ -3,6 +3,9 @@ import re
from buildstream import Element, ElementError, Scope
class ExtractInitialScriptsElement(Element):
+ BST_FORBID_RDEPENDS = True
+ BST_FORBID_SOURCES = True
+
def configure(self, node):
self.node_validate(node, [
'path',
@@ -11,14 +14,7 @@ class ExtractInitialScriptsElement(Element):
self.path = self.node_subst_member(node, 'path')
def preflight(self):
- runtime_deps = list(self.dependencies(Scope.RUN, recurse=False))
- if runtime_deps:
- raise ElementError("{}: Only build type dependencies supported by collect-integration elements"
- .format(self))
-
- sources = list(self.sources())
- if sources:
- raise ElementError("{}: collect-integration elements may not have sources".format(self))
+ pass
def get_unique_key(self):
key = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]