summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-30 15:27:39 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-30 17:44:34 +0900
commit60ad044a9784d762645d81296bad1cdcd3cd20bf (patch)
treecfa1682b4653c9d122a1b190ec5457d6e5f1c247
parentfcc17c820d676b82dc2536c270bbfc3c28abfba1 (diff)
downloadbuildstream-60ad044a9784d762645d81296bad1cdcd3cd20bf.tar.gz
source.py: Move Source.mark_download_url() to the public methods.
This was sitting in the section for abstract methods, but this is most definitely not an abstract method to be implemented by Sources.
-rw-r--r--buildstream/source.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index 5e43da5ea..b86f3fb16 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -445,19 +445,6 @@ class Source(Plugin):
"""
self.stage(directory)
- 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.
-
- Args:
- url (str): The url used to download
-
- *Since: 1.2*
- """
- self.__expected_alias = _extract_alias(url)
-
def get_source_fetchers(self):
"""Get the objects that are used for fetching
@@ -526,6 +513,19 @@ class Source(Plugin):
project = self._get_project()
return project.translate_url(url, first_pass=self.__first_pass)
+ 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.
+
+ Args:
+ url (str): The url used to download
+
+ *Since: 1.2*
+ """
+ self.__expected_alias = _extract_alias(url)
+
def get_project_directory(self):
"""Fetch the project base directory