Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
3901584f
Commit
3901584f
authored
6 years ago
by
Benjamin Schubert
Browse files
Options
Downloads
Patches
Plain Diff
Slotify
parent
8e95640a
No related branches found
No related tags found
No related merge requests found
Pipeline
#46260731
canceled
6 years ago
Stage: test
Stage: post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildstream/_loader/loadelement.py
+5
-4
5 additions, 4 deletions
buildstream/_loader/loadelement.py
with
5 additions
and
4 deletions
buildstream/_loader/loadelement.py
+
5
−
4
View file @
3901584f
...
...
@@ -41,7 +41,7 @@ from .types import Symbol, Dependency
# name (str): The element name
# loader (Loader): The Loader object for this element
#
class
LoadElement
()
:
class
LoadElement
:
# Dependency():
#
# A link from a LoadElement to its dependencies.
...
...
@@ -53,10 +53,14 @@ class LoadElement():
# element (LoadElement): a LoadElement on which there is a dependency
# dep_type (str): the type of dependency this dependency link is
class
_Dependency
:
__slots__
=
[
"
element
"
,
"
dep_type
"
]
def
__init__
(
self
,
element
,
dep_type
):
self
.
element
=
element
self
.
dep_type
=
dep_type
__slots__
=
[
"
node
"
,
"
name
"
,
"
full_name
"
,
"
node_id
"
,
"
deps_id
"
,
"
dependencies
"
,
"
_loader
"
]
next_id
=
0b1
def
__init__
(
self
,
node
,
filename
,
loader
):
...
...
@@ -66,8 +70,6 @@ class LoadElement():
#
self
.
node
=
node
# The YAML node
self
.
name
=
filename
# The element name
self
.
full_name
=
None
# The element full name (with associated junction)
self
.
deps
=
None
# The list of Dependency objects
self
.
node_id
=
self
.
get_id
()
self
.
deps_id
=
0b0
...
...
@@ -75,7 +77,6 @@ class LoadElement():
# Private members
#
self
.
_loader
=
loader
# The Loader object
self
.
_dep_cache
=
None
# The dependency cache, to speed up depends()
#
# Initialization
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment