mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
bitbake: bitbake: replace http with https for URLs
https has been the preferred way to access websites for many years now. Change all of the URLs with a _working_ https server/certificate to use that URL. (Bitbake rev: da543cdaf88a387675e25d3555765f1146e4105e) Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fd232ab906
commit
2e78ec95be
|
@ -7,7 +7,7 @@ One of BitBake's main users, OpenEmbedded, takes this core and builds embedded L
|
||||||
stacks using a task-oriented approach.
|
stacks using a task-oriented approach.
|
||||||
|
|
||||||
For information about Bitbake, see the OpenEmbedded website:
|
For information about Bitbake, see the OpenEmbedded website:
|
||||||
http://www.openembedded.org/
|
https://www.openembedded.org/
|
||||||
|
|
||||||
Bitbake plain documentation can be found under the doc directory or its integrated
|
Bitbake plain documentation can be found under the doc directory or its integrated
|
||||||
html version at the Yocto Project website:
|
html version at the Yocto Project website:
|
||||||
|
@ -17,7 +17,7 @@ Contributing
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Please refer to
|
Please refer to
|
||||||
http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
|
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
|
||||||
for guidelines on how to submit patches, just note that the latter documentation is intended
|
for guidelines on how to submit patches, just note that the latter documentation is intended
|
||||||
for OpenEmbedded (and its core) not bitbake patches (bitbake-devel@lists.openembedded.org)
|
for OpenEmbedded (and its core) not bitbake patches (bitbake-devel@lists.openembedded.org)
|
||||||
but in general main guidelines apply. Once the commit(s) have been created, the way to send
|
but in general main guidelines apply. Once the commit(s) have been created, the way to send
|
||||||
|
@ -28,11 +28,11 @@ branch, type:
|
||||||
|
|
||||||
Mailing list:
|
Mailing list:
|
||||||
|
|
||||||
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
|
https://lists.openembedded.org/g/bitbake-devel
|
||||||
|
|
||||||
Source code:
|
Source code:
|
||||||
|
|
||||||
http://git.openembedded.org/bitbake/
|
https://git.openembedded.org/bitbake/
|
||||||
|
|
||||||
Testing:
|
Testing:
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Folders exist for individual manuals as follows:
|
||||||
Each folder is self-contained regarding content and figures.
|
Each folder is self-contained regarding content and figures.
|
||||||
|
|
||||||
If you want to find HTML versions of the BitBake manuals on the web,
|
If you want to find HTML versions of the BitBake manuals on the web,
|
||||||
go to http://www.openembedded.org/wiki/Documentation.
|
go to https://www.openembedded.org/wiki/Documentation.
|
||||||
|
|
||||||
Sphinx
|
Sphinx
|
||||||
======
|
======
|
||||||
|
|
|
@ -74,7 +74,7 @@ handles that particular URL type. This behavior can be the source of
|
||||||
some confusion when you are providing URLs for the :term:`SRC_URI` variable.
|
some confusion when you are providing URLs for the :term:`SRC_URI` variable.
|
||||||
Consider the following two URLs::
|
Consider the following two URLs::
|
||||||
|
|
||||||
http://git.yoctoproject.org/git/poky;protocol=git
|
https://git.yoctoproject.org/git/poky;protocol=git
|
||||||
git://git.yoctoproject.org/git/poky;protocol=http
|
git://git.yoctoproject.org/git/poky;protocol=http
|
||||||
|
|
||||||
In the former case, the URL is passed to the ``wget`` fetcher, which does not
|
In the former case, the URL is passed to the ``wget`` fetcher, which does not
|
||||||
|
|
|
@ -99,7 +99,7 @@ discussion mailing list about the BitBake build tool.
|
||||||
|
|
||||||
This example was inspired by and drew heavily from
|
This example was inspired by and drew heavily from
|
||||||
`Mailing List post - The BitBake equivalent of "Hello, World!"
|
`Mailing List post - The BitBake equivalent of "Hello, World!"
|
||||||
<http://www.mail-archive.com/yocto@yoctoproject.org/msg09379.html>`_.
|
<https://www.mail-archive.com/yocto@yoctoproject.org/msg09379.html>`_.
|
||||||
|
|
||||||
As stated earlier, the goal of this example is to eventually compile
|
As stated earlier, the goal of this example is to eventually compile
|
||||||
"Hello World". However, it is unknown what BitBake needs and what you
|
"Hello World". However, it is unknown what BitBake needs and what you
|
||||||
|
@ -205,7 +205,7 @@ Following is the complete "Hello World" example.
|
||||||
recipe files. For this example, you need to create the file in your
|
recipe files. For this example, you need to create the file in your
|
||||||
project directory and define some key BitBake variables. For more
|
project directory and define some key BitBake variables. For more
|
||||||
information on the ``bitbake.conf`` file, see
|
information on the ``bitbake.conf`` file, see
|
||||||
http://git.openembedded.org/bitbake/tree/conf/bitbake.conf.
|
https://git.openembedded.org/bitbake/tree/conf/bitbake.conf.
|
||||||
|
|
||||||
Use the following commands to create the ``conf`` directory in the
|
Use the following commands to create the ``conf`` directory in the
|
||||||
project directory::
|
project directory::
|
||||||
|
|
|
@ -60,11 +60,11 @@ member Chris Larson split the project into two distinct pieces:
|
||||||
- OpenEmbedded, a metadata set utilized by BitBake
|
- OpenEmbedded, a metadata set utilized by BitBake
|
||||||
|
|
||||||
Today, BitBake is the primary basis of the
|
Today, BitBake is the primary basis of the
|
||||||
`OpenEmbedded <http://www.openembedded.org/>`__ project, which is being
|
`OpenEmbedded <https://www.openembedded.org/>`__ project, which is being
|
||||||
used to build and maintain Linux distributions such as the `Angstrom
|
used to build and maintain Linux distributions such as the `Angstrom
|
||||||
Distribution <http://www.angstrom-distribution.org/>`__, and which is
|
Distribution <http://www.angstrom-distribution.org/>`__, and which is
|
||||||
also being used as the build tool for Linux projects such as the `Yocto
|
also being used as the build tool for Linux projects such as the `Yocto
|
||||||
Project <http://www.yoctoproject.org>`__.
|
Project <https://www.yoctoproject.org>`__.
|
||||||
|
|
||||||
Prior to BitBake, no other build tool adequately met the needs of an
|
Prior to BitBake, no other build tool adequately met the needs of an
|
||||||
aspiring embedded Linux distribution. All of the build systems used by
|
aspiring embedded Linux distribution. All of the build systems used by
|
||||||
|
@ -319,7 +319,7 @@ You can obtain BitBake several different ways:
|
||||||
|
|
||||||
The following example downloads a snapshot of BitBake version 1.17.0::
|
The following example downloads a snapshot of BitBake version 1.17.0::
|
||||||
|
|
||||||
$ wget http://git.openembedded.org/bitbake/snapshot/bitbake-1.17.0.tar.gz
|
$ wget https://git.openembedded.org/bitbake/snapshot/bitbake-1.17.0.tar.gz
|
||||||
$ tar zxpvf bitbake-1.17.0.tar.gz
|
$ tar zxpvf bitbake-1.17.0.tar.gz
|
||||||
|
|
||||||
After extraction of the tarball using
|
After extraction of the tarball using
|
||||||
|
|
|
@ -538,7 +538,7 @@ overview of their function and contents.
|
||||||
|
|
||||||
You can use this variable in combination with task overrides to raise
|
You can use this variable in combination with task overrides to raise
|
||||||
or lower priorities of specific tasks. For example, on the `Yocto
|
or lower priorities of specific tasks. For example, on the `Yocto
|
||||||
Project <http://www.yoctoproject.org>`__ autobuilder, QEMU emulation
|
Project <https://www.yoctoproject.org>`__ autobuilder, QEMU emulation
|
||||||
in images is given a higher priority as compared to build tasks to
|
in images is given a higher priority as compared to build tasks to
|
||||||
ensure that images do not suffer timeouts on loaded systems.
|
ensure that images do not suffer timeouts on loaded systems.
|
||||||
|
|
||||||
|
|
|
@ -826,12 +826,12 @@ class FetcherNoNetworkTest(FetcherTest):
|
||||||
class FetcherNetworkTest(FetcherTest):
|
class FetcherNetworkTest(FetcherTest):
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch(self):
|
def test_fetch(self):
|
||||||
fetcher = bb.fetch.Fetch(["http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", "http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", "https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.1.tar.gz"), 57892)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.1.tar.gz"), 57892)
|
||||||
self.d.setVar("BB_NO_NETWORK", "1")
|
self.d.setVar("BB_NO_NETWORK", "1")
|
||||||
fetcher = bb.fetch.Fetch(["http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", "http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", "https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
fetcher.unpack(self.unpackdir)
|
fetcher.unpack(self.unpackdir)
|
||||||
self.assertEqual(len(os.listdir(self.unpackdir + "/bitbake-1.0/")), 9)
|
self.assertEqual(len(os.listdir(self.unpackdir + "/bitbake-1.0/")), 9)
|
||||||
|
@ -839,21 +839,21 @@ class FetcherNetworkTest(FetcherTest):
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch_mirror(self):
|
def test_fetch_mirror(self):
|
||||||
self.d.setVar("MIRRORS", "http://.*/.* http://downloads.yoctoproject.org/releases/bitbake")
|
self.d.setVar("MIRRORS", "http://.*/.* https://downloads.yoctoproject.org/releases/bitbake")
|
||||||
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch_mirror_of_mirror(self):
|
def test_fetch_mirror_of_mirror(self):
|
||||||
self.d.setVar("MIRRORS", "http://.*/.* http://invalid2.yoctoproject.org/ \n http://invalid2.yoctoproject.org/.* http://downloads.yoctoproject.org/releases/bitbake")
|
self.d.setVar("MIRRORS", "http://.*/.* http://invalid2.yoctoproject.org/ \n http://invalid2.yoctoproject.org/.* https://downloads.yoctoproject.org/releases/bitbake")
|
||||||
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch_file_mirror_of_mirror(self):
|
def test_fetch_file_mirror_of_mirror(self):
|
||||||
self.d.setVar("MIRRORS", "http://.*/.* file:///some1where/ \n file:///some1where/.* file://some2where/ \n file://some2where/.* http://downloads.yoctoproject.org/releases/bitbake")
|
self.d.setVar("MIRRORS", "http://.*/.* file:///some1where/ \n file:///some1where/.* file://some2where/ \n file://some2where/.* https://downloads.yoctoproject.org/releases/bitbake")
|
||||||
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
||||||
os.mkdir(self.dldir + "/some2where")
|
os.mkdir(self.dldir + "/some2where")
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
|
@ -861,20 +861,20 @@ class FetcherNetworkTest(FetcherTest):
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch_premirror(self):
|
def test_fetch_premirror(self):
|
||||||
self.d.setVar("PREMIRRORS", "http://.*/.* http://downloads.yoctoproject.org/releases/bitbake")
|
self.d.setVar("PREMIRRORS", "http://.*/.* https://downloads.yoctoproject.org/releases/bitbake")
|
||||||
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749)
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch_specify_downloadfilename(self):
|
def test_fetch_specify_downloadfilename(self):
|
||||||
fetcher = bb.fetch.Fetch(["http://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz;downloadfilename=bitbake-v1.0.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz;downloadfilename=bitbake-v1.0.0.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-v1.0.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-v1.0.0.tar.gz"), 57749)
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_fetch_premirror_specify_downloadfilename_regex_uri(self):
|
def test_fetch_premirror_specify_downloadfilename_regex_uri(self):
|
||||||
self.d.setVar("PREMIRRORS", "http://.*/.* http://downloads.yoctoproject.org/releases/bitbake/")
|
self.d.setVar("PREMIRRORS", "http://.*/.* https://downloads.yoctoproject.org/releases/bitbake/")
|
||||||
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz;downloadfilename=bitbake-v1.0.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz;downloadfilename=bitbake-v1.0.0.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-v1.0.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-v1.0.0.tar.gz"), 57749)
|
||||||
|
@ -882,7 +882,7 @@ class FetcherNetworkTest(FetcherTest):
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
# BZ13039
|
# BZ13039
|
||||||
def test_fetch_premirror_specify_downloadfilename_specific_uri(self):
|
def test_fetch_premirror_specify_downloadfilename_specific_uri(self):
|
||||||
self.d.setVar("PREMIRRORS", "http://invalid.yoctoproject.org/releases/bitbake http://downloads.yoctoproject.org/releases/bitbake")
|
self.d.setVar("PREMIRRORS", "http://invalid.yoctoproject.org/releases/bitbake https://downloads.yoctoproject.org/releases/bitbake")
|
||||||
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz;downloadfilename=bitbake-v1.0.0.tar.gz"], self.d)
|
fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz;downloadfilename=bitbake-v1.0.0.tar.gz"], self.d)
|
||||||
fetcher.download()
|
fetcher.download()
|
||||||
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-v1.0.0.tar.gz"), 57749)
|
self.assertEqual(os.path.getsize(self.dldir + "/bitbake-v1.0.0.tar.gz"), 57749)
|
||||||
|
@ -1291,10 +1291,10 @@ class FetchLatestVersionTest(FetcherTest):
|
||||||
#
|
#
|
||||||
# packages with versions only in current directory
|
# packages with versions only in current directory
|
||||||
#
|
#
|
||||||
# http://downloads.yoctoproject.org/releases/eglibc/eglibc-2.18-svnr23787.tar.bz2
|
# https://downloads.yoctoproject.org/releases/eglibc/eglibc-2.18-svnr23787.tar.bz2
|
||||||
("eglic", "/releases/eglibc/eglibc-2.18-svnr23787.tar.bz2", "", "")
|
("eglic", "/releases/eglibc/eglibc-2.18-svnr23787.tar.bz2", "", "")
|
||||||
: "2.19",
|
: "2.19",
|
||||||
# http://downloads.yoctoproject.org/releases/gnu-config/gnu-config-20120814.tar.bz2
|
# https://downloads.yoctoproject.org/releases/gnu-config/gnu-config-20120814.tar.bz2
|
||||||
("gnu-config", "/releases/gnu-config/gnu-config-20120814.tar.bz2", "", "")
|
("gnu-config", "/releases/gnu-config/gnu-config-20120814.tar.bz2", "", "")
|
||||||
: "20120814",
|
: "20120814",
|
||||||
#
|
#
|
||||||
|
@ -1357,13 +1357,13 @@ class FetchLatestVersionTest(FetcherTest):
|
||||||
|
|
||||||
|
|
||||||
class FetchCheckStatusTest(FetcherTest):
|
class FetchCheckStatusTest(FetcherTest):
|
||||||
test_wget_uris = ["http://downloads.yoctoproject.org/releases/sato/sato-engine-0.1.tar.gz",
|
test_wget_uris = ["https://downloads.yoctoproject.org/releases/sato/sato-engine-0.1.tar.gz",
|
||||||
"http://downloads.yoctoproject.org/releases/sato/sato-engine-0.2.tar.gz",
|
"https://downloads.yoctoproject.org/releases/sato/sato-engine-0.2.tar.gz",
|
||||||
"http://downloads.yoctoproject.org/releases/sato/sato-engine-0.3.tar.gz",
|
"https://downloads.yoctoproject.org/releases/sato/sato-engine-0.3.tar.gz",
|
||||||
"https://yoctoproject.org/",
|
"https://yoctoproject.org/",
|
||||||
"https://docs.yoctoproject.org",
|
"https://docs.yoctoproject.org",
|
||||||
"http://downloads.yoctoproject.org/releases/opkg/opkg-0.1.7.tar.gz",
|
"https://downloads.yoctoproject.org/releases/opkg/opkg-0.1.7.tar.gz",
|
||||||
"http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.0.tar.gz",
|
"https://downloads.yoctoproject.org/releases/opkg/opkg-0.3.0.tar.gz",
|
||||||
"ftp://sourceware.org/pub/libffi/libffi-1.20.tar.gz",
|
"ftp://sourceware.org/pub/libffi/libffi-1.20.tar.gz",
|
||||||
"http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz",
|
"http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz",
|
||||||
"https://ftp.gnu.org/gnu/chess/gnuchess-5.08.tar.gz",
|
"https://ftp.gnu.org/gnu/chess/gnuchess-5.08.tar.gz",
|
||||||
|
|
|
@ -198,7 +198,7 @@ The format of the indexURI:
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
http://layers.openembedded.org/layerindex/api/;branch=master;desc=OpenEmbedded%20Layer%20Index
|
https://layers.openembedded.org/layerindex/api/;branch=master;desc=OpenEmbedded%20Layer%20Index
|
||||||
cooker://
|
cooker://
|
||||||
'''
|
'''
|
||||||
if reload:
|
if reload:
|
||||||
|
@ -576,7 +576,7 @@ This function is used to implement debugging and provide the user info.
|
||||||
# index['config'] - configuration data for this index
|
# index['config'] - configuration data for this index
|
||||||
# index['branches'] - dictionary of Branch objects, by id number
|
# index['branches'] - dictionary of Branch objects, by id number
|
||||||
# index['layerItems'] - dictionary of layerItem objects, by id number
|
# index['layerItems'] - dictionary of layerItem objects, by id number
|
||||||
# ...etc... (See: http://layers.openembedded.org/layerindex/api/)
|
# ...etc... (See: https://layers.openembedded.org/layerindex/api/)
|
||||||
#
|
#
|
||||||
# The class needs to manage the 'index' entries and allow easily adding
|
# The class needs to manage the 'index' entries and allow easily adding
|
||||||
# of new items, as well as simply loading of the items.
|
# of new items, as well as simply loading of the items.
|
||||||
|
|
|
@ -31,7 +31,7 @@ class RestApiPlugin(layerindexlib.plugin.IndexPlugin):
|
||||||
The return value is a LayerIndexObj.
|
The return value is a LayerIndexObj.
|
||||||
|
|
||||||
url is the url to the rest api of the layer index, such as:
|
url is the url to the rest api of the layer index, such as:
|
||||||
http://layers.openembedded.org/layerindex/api/
|
https://layers.openembedded.org/layerindex/api/
|
||||||
|
|
||||||
Or a local file...
|
Or a local file...
|
||||||
"""
|
"""
|
||||||
|
@ -138,7 +138,7 @@ class RestApiPlugin(layerindexlib.plugin.IndexPlugin):
|
||||||
The return value is a LayerIndexObj.
|
The return value is a LayerIndexObj.
|
||||||
|
|
||||||
ud is the parsed url to the rest api of the layer index, such as:
|
ud is the parsed url to the rest api of the layer index, such as:
|
||||||
http://layers.openembedded.org/layerindex/api/
|
https://layers.openembedded.org/layerindex/api/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _get_json_response(apiurl=None, username=None, password=None, retry=True):
|
def _get_json_response(apiurl=None, username=None, password=None, retry=True):
|
||||||
|
|
|
@ -22,7 +22,7 @@ class LayerIndexWebRestApiTest(LayersTest):
|
||||||
self.assertFalse(os.environ.get("BB_SKIP_NETTESTS") == "yes", msg="BB_SKIP_NETTESTS set, but we tried to test anyway")
|
self.assertFalse(os.environ.get("BB_SKIP_NETTESTS") == "yes", msg="BB_SKIP_NETTESTS set, but we tried to test anyway")
|
||||||
LayersTest.setUp(self)
|
LayersTest.setUp(self)
|
||||||
self.layerindex = layerindexlib.LayerIndex(self.d)
|
self.layerindex = layerindexlib.LayerIndex(self.d)
|
||||||
self.layerindex.load_layerindex('http://layers.openembedded.org/layerindex/api/;branch=sumo', load=['layerDependencies'])
|
self.layerindex.load_layerindex('https://layers.openembedded.org/layerindex/api/;branch=sumo', load=['layerDependencies'])
|
||||||
|
|
||||||
@skipIfNoNetwork()
|
@skipIfNoNetwork()
|
||||||
def test_layerindex_is_empty(self):
|
def test_layerindex_is_empty(self):
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<field type="CharField" name="description">Openembedded Dunfell</field>
|
<field type="CharField" name="description">Openembedded Dunfell</field>
|
||||||
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
|
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
|
||||||
<field type="CharField" name="branch_name">dunfell</field>
|
<field type="CharField" name="branch_name">dunfell</field>
|
||||||
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=dunfell\">OpenEmbedded Dunfell</a> branch.</field>
|
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href=\"https://cgit.openembedded.org/openembedded-core/log/?h=dunfell\">OpenEmbedded Dunfell</a> branch.</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.release" pk="2">
|
<object model="orm.release" pk="2">
|
||||||
<field type="CharField" name="name">local</field>
|
<field type="CharField" name="name">local</field>
|
||||||
|
@ -48,14 +48,14 @@
|
||||||
<field type="CharField" name="description">OpenEmbedded core master</field>
|
<field type="CharField" name="description">OpenEmbedded core master</field>
|
||||||
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">3</field>
|
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">3</field>
|
||||||
<field type="CharField" name="branch_name">master</field>
|
<field type="CharField" name="branch_name">master</field>
|
||||||
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/\">OpenEmbedded master</a> branch.</field>
|
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href=\"https://cgit.openembedded.org/openembedded-core/log/\">OpenEmbedded master</a> branch.</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.release" pk="4">
|
<object model="orm.release" pk="4">
|
||||||
<field type="CharField" name="name">gatesgarth</field>
|
<field type="CharField" name="name">gatesgarth</field>
|
||||||
<field type="CharField" name="description">Openembedded Gatesgarth</field>
|
<field type="CharField" name="description">Openembedded Gatesgarth</field>
|
||||||
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">4</field>
|
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">4</field>
|
||||||
<field type="CharField" name="branch_name">gatesgarth</field>
|
<field type="CharField" name="branch_name">gatesgarth</field>
|
||||||
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=gatesgarth\">OpenEmbedded Gatesgarth</a> branch.</field>
|
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href=\"https://cgit.openembedded.org/openembedded-core/log/?h=gatesgarth\">OpenEmbedded Gatesgarth</a> branch.</field>
|
||||||
</object>
|
</object>
|
||||||
|
|
||||||
<!-- Default layers for each release -->
|
<!-- Default layers for each release -->
|
||||||
|
@ -81,9 +81,9 @@
|
||||||
<object model="orm.layer" pk="1">
|
<object model="orm.layer" pk="1">
|
||||||
<field type="CharField" name="name">openembedded-core</field>
|
<field type="CharField" name="name">openembedded-core</field>
|
||||||
<field type="CharField" name="vcs_url">git://git.openembedded.org/openembedded-core</field>
|
<field type="CharField" name="vcs_url">git://git.openembedded.org/openembedded-core</field>
|
||||||
<field type="CharField" name="vcs_web_url">http://cgit.openembedded.org/openembedded-core</field>
|
<field type="CharField" name="vcs_web_url">https://cgit.openembedded.org/openembedded-core</field>
|
||||||
<field type="CharField" name="vcs_web_tree_base_url">http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_tree_base_url">https://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch%</field>
|
||||||
<field type="CharField" name="vcs_web_file_base_url">http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_file_base_url">https://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch%</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.layer_version" pk="1">
|
<object model="orm.layer_version" pk="1">
|
||||||
<field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
|
<field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<field type="CharField" name="description">Yocto Project 3.1 "Dunfell"</field>
|
<field type="CharField" name="description">Yocto Project 3.1 "Dunfell"</field>
|
||||||
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
|
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">1</field>
|
||||||
<field type="CharField" name="branch_name">dunfell</field>
|
<field type="CharField" name="branch_name">dunfell</field>
|
||||||
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=dunfell">Yocto Project Dunfell branch</a>.</field>
|
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=dunfell">Yocto Project Dunfell branch</a>.</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.release" pk="2">
|
<object model="orm.release" pk="2">
|
||||||
<field type="CharField" name="name">local</field>
|
<field type="CharField" name="name">local</field>
|
||||||
|
@ -53,14 +53,14 @@
|
||||||
<field type="CharField" name="description">Yocto Project master</field>
|
<field type="CharField" name="description">Yocto Project master</field>
|
||||||
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">3</field>
|
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">3</field>
|
||||||
<field type="CharField" name="branch_name">master</field>
|
<field type="CharField" name="branch_name">master</field>
|
||||||
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/">Yocto Project Master branch</a>.</field>
|
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/">Yocto Project Master branch</a>.</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.release" pk="4">
|
<object model="orm.release" pk="4">
|
||||||
<field type="CharField" name="name">gatesgarth</field>
|
<field type="CharField" name="name">gatesgarth</field>
|
||||||
<field type="CharField" name="description">Yocto Project 3.2 "Gatesgarth"</field>
|
<field type="CharField" name="description">Yocto Project 3.2 "Gatesgarth"</field>
|
||||||
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">4</field>
|
<field rel="ManyToOneRel" to="orm.bitbakeversion" name="bitbake_version">4</field>
|
||||||
<field type="CharField" name="branch_name">gatesgarth</field>
|
<field type="CharField" name="branch_name">gatesgarth</field>
|
||||||
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=gatesgarth">Yocto Project Gatesgarth branch</a>.</field>
|
<field type="TextField" name="helptext">Toaster will run your builds using the tip of the <a href="https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=gatesgarth">Yocto Project Gatesgarth branch</a>.</field>
|
||||||
</object>
|
</object>
|
||||||
|
|
||||||
<!-- Default project layers for each release -->
|
<!-- Default project layers for each release -->
|
||||||
|
@ -122,9 +122,9 @@
|
||||||
<field type="CharField" name="name">openembedded-core</field>
|
<field type="CharField" name="name">openembedded-core</field>
|
||||||
<field type="CharField" name="layer_index_url"></field>
|
<field type="CharField" name="layer_index_url"></field>
|
||||||
<field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
|
<field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
|
||||||
<field type="CharField" name="vcs_web_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
|
<field type="CharField" name="vcs_web_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
|
||||||
<field type="CharField" name="vcs_web_tree_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_tree_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
||||||
<field type="CharField" name="vcs_web_file_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_file_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.layer_version" pk="1">
|
<object model="orm.layer_version" pk="1">
|
||||||
<field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
|
<field rel="ManyToOneRel" to="orm.layer" name="layer">1</field>
|
||||||
|
@ -160,9 +160,9 @@
|
||||||
<field type="CharField" name="name">meta-poky</field>
|
<field type="CharField" name="name">meta-poky</field>
|
||||||
<field type="CharField" name="layer_index_url"></field>
|
<field type="CharField" name="layer_index_url"></field>
|
||||||
<field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
|
<field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
|
||||||
<field type="CharField" name="vcs_web_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
|
<field type="CharField" name="vcs_web_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
|
||||||
<field type="CharField" name="vcs_web_tree_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_tree_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
||||||
<field type="CharField" name="vcs_web_file_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_file_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.layer_version" pk="5">
|
<object model="orm.layer_version" pk="5">
|
||||||
<field rel="ManyToOneRel" to="orm.layer" name="layer">2</field>
|
<field rel="ManyToOneRel" to="orm.layer" name="layer">2</field>
|
||||||
|
@ -198,9 +198,9 @@
|
||||||
<field type="CharField" name="name">meta-yocto-bsp</field>
|
<field type="CharField" name="name">meta-yocto-bsp</field>
|
||||||
<field type="CharField" name="layer_index_url"></field>
|
<field type="CharField" name="layer_index_url"></field>
|
||||||
<field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
|
<field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field>
|
||||||
<field type="CharField" name="vcs_web_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
|
<field type="CharField" name="vcs_web_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky</field>
|
||||||
<field type="CharField" name="vcs_web_tree_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_tree_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
||||||
<field type="CharField" name="vcs_web_file_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
<field type="CharField" name="vcs_web_file_base_url">https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field>
|
||||||
</object>
|
</object>
|
||||||
<object model="orm.layer_version" pk="9">
|
<object model="orm.layer_version" pk="9">
|
||||||
<field rel="ManyToOneRel" to="orm.layer" name="layer">3</field>
|
<field rel="ManyToOneRel" to="orm.layer" name="layer">3</field>
|
||||||
|
|
|
@ -21,7 +21,7 @@ import threading
|
||||||
import time
|
import time
|
||||||
logger = logging.getLogger("toaster")
|
logger = logging.getLogger("toaster")
|
||||||
|
|
||||||
DEFAULT_LAYERINDEX_SERVER = "http://layers.openembedded.org/layerindex/api/"
|
DEFAULT_LAYERINDEX_SERVER = "https://layers.openembedded.org/layerindex/api/"
|
||||||
|
|
||||||
# Add path to bitbake modules for layerindexlib
|
# Add path to bitbake modules for layerindexlib
|
||||||
# lib/toaster/orm/management/commands/lsupdates.py (abspath)
|
# lib/toaster/orm/management/commands/lsupdates.py (abspath)
|
||||||
|
|
|
@ -355,7 +355,7 @@
|
||||||
{% if layerversion.layer_source == layer_source.TYPE_LAYERINDEX %}
|
{% if layerversion.layer_source == layer_source.TYPE_LAYERINDEX %}
|
||||||
<dt>Layer index</dt>
|
<dt>Layer index</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<a href="http://layers.openembedded.org/layerindex/branch/{{layerversion.release.name}}/layer/{{layerversion.layer.name}}">Layer index {{layerversion.layer.name}}</a>
|
<a href="https://layers.openembedded.org/layerindex/branch/{{layerversion.release.name}}/layer/{{layerversion.layer.name}}">Layer index {{layerversion.layer.name}}</a>
|
||||||
</dd>
|
</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
{% comment %}
|
{% comment %}
|
||||||
# Removed per team meeting of 1/29/2014 until
|
# Removed per team meeting of 1/29/2014 until
|
||||||
# decision on index search algorithm
|
# decision on index search algorithm
|
||||||
<a href="http://layers.openembedded.org" target="_blank">
|
<a href="https://layers.openembedded.org" target="_blank">
|
||||||
<i class="glyphicon glyphicon-share get-info"></i>
|
<i class="glyphicon glyphicon-share get-info"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user