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
986d6231
Commit
986d6231
authored
7 years ago
by
Jürg Billeter
Browse files
Options
Downloads
Patches
Plain Diff
source.py: Add optional _get_local_path() method
parent
abef70fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildstream/source.py
+17
-0
17 additions, 0 deletions
buildstream/source.py
with
17 additions
and
0 deletions
buildstream/source.py
+
17
−
0
View file @
986d6231
...
...
@@ -615,6 +615,23 @@ class Source(Plugin):
with
utils
.
_tempdir
(
dir
=
mirrordir
)
as
tempdir
:
yield
tempdir
#############################################################
# Private Abstract Methods used in BuildStream #
#############################################################
# Returns the local path to the source
#
# If the source is locally available, this method returns the absolute
# path. Otherwise, the return value is None.
#
# This is an optimization for local sources and optional to implement.
#
# Returns:
# (str): The local absolute path, or None
#
def
_get_local_path
(
self
):
return
None
#############################################################
# Private Methods used in BuildStream #
#############################################################
...
...
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