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
a6dbf5fc
Commit
a6dbf5fc
authored
6 years ago
by
Tristan Van Berkom
Browse files
Options
Downloads
Patches
Plain Diff
source.py: Fixing docs link formatting to be consistent.
parent
2a27b9c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!773
Source fetcher changes 1.2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildstream/source.py
+10
-8
10 additions, 8 deletions
buildstream/source.py
with
10 additions
and
8 deletions
buildstream/source.py
+
10
−
8
View file @
a6dbf5fc
...
...
@@ -290,10 +290,10 @@ class Source(Plugin):
Args:
ref (simple object): The internal source reference to set, or ``None``
node (dict): The same dictionary which was previously passed
to :func:`
~buildstream.source.Source
.configure`
to :func:`
Plugin.configure() <buildstream.plugin.Plugin
.configure
>
`
See :func:`
~
buildstream.source.Source.get_ref`
for a discussion on
the *ref* parameter.
See :func:`
Source.get_ref() <
buildstream.source.Source.get_ref
>
`
for a discussion on
the *ref* parameter.
.. note::
...
...
@@ -317,8 +317,8 @@ class Source(Plugin):
backend store allows one to query for a new ref from a symbolic
tracking data without downloading then that is desirable.
See :func:`
~
buildstream.source.Source.get_ref`
for a discussion on
the *ref* parameter.
See :func:`
Source.get_ref() <
buildstream.source.Source.get_ref
>
`
for a discussion on
the *ref* parameter.
"""
# Allow a non implementation
return
None
...
...
@@ -362,7 +362,7 @@ class Source(Plugin):
:class:`.SourceError`
Default implementation is to call
:func:`
~
buildstream.source.Source.stage`.
:func:`
Source.stage() <
buildstream.source.Source.stage
>
`.
Implementors overriding this method should assume that *directory*
already exists.
...
...
@@ -450,8 +450,10 @@ class Source(Plugin):
def
mark_download_url
(
self
,
url
):
"""
Identifies the URL that this Source uses to download
This must be called during :func:`~buildstream.plugin.Plugin.configure` if
:func:`~buildstream.source.Source.translate_url` is not called.
This must be called during
:func:`Plugin.configure() <buildstream.plugin.Plugin.configure>` if
:func:`Source.translate_url() <buildstream.source.Source.translate_url>`
is not called.
Args:
url (str): The url used to download
...
...
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