mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
recipes: Default to https git protocol for YP/OE repos
This corresponds to the master
commit 139102a73d41 ("recipes: Default to https git protocol where possible").
But only for the git.yoctoproject.org and git.openembedded.org repos.
> The recommendation from server maintainers is that the https protocol
> is both faster and more reliable than the dedicated git protocol at this point.
> Switch to it where possible.
(From OE-Core rev: c1b208babae70244ab062b2e4674b0309fbd65e5)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
This commit is contained in:
committed by
Paul Barker
parent
f5a60f9888
commit
e2b0ffbd78
@@ -34,6 +34,7 @@ PREMIRRORS:forcevariable = ""
|
||||
# No mirrors and broken git, should fail
|
||||
features = """
|
||||
DL_DIR = "%s"
|
||||
SRC_URI:pn-dbus-wait = "git://git.yoctoproject.org/dbus-wait;branch=master;protocol=git"
|
||||
GIT_PROXY_COMMAND = "false"
|
||||
MIRRORS:forcevariable = ""
|
||||
PREMIRRORS:forcevariable = ""
|
||||
@@ -46,6 +47,7 @@ PREMIRRORS:forcevariable = ""
|
||||
# Broken git but a specific mirror
|
||||
features = """
|
||||
DL_DIR = "%s"
|
||||
SRC_URI:pn-dbus-wait = "git://git.yoctoproject.org/dbus-wait;branch=master;protocol=git"
|
||||
GIT_PROXY_COMMAND = "false"
|
||||
MIRRORS:forcevariable = "git://.*/.* http://downloads.yoctoproject.org/mirror/sources/"
|
||||
""" % dldir
|
||||
|
||||
@@ -359,7 +359,7 @@ class RecipetoolCreateTests(RecipetoolBase):
|
||||
tempsrc = os.path.join(self.tempdir, 'srctree')
|
||||
os.makedirs(tempsrc)
|
||||
recipefile = os.path.join(self.tempdir, 'libmatchbox.bb')
|
||||
srcuri = 'git://git.yoctoproject.org/libmatchbox'
|
||||
srcuri = 'git://git.yoctoproject.org/libmatchbox;protocol=https'
|
||||
result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc])
|
||||
self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output)
|
||||
checkvars = {}
|
||||
@@ -512,13 +512,13 @@ class RecipetoolCreateTests(RecipetoolBase):
|
||||
self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard')
|
||||
|
||||
def test_recipetool_create_git_srcuri_master(self):
|
||||
self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master')
|
||||
self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master;protocol=https')
|
||||
|
||||
def test_recipetool_create_git_srcuri_branch(self):
|
||||
self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1')
|
||||
self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1;protocol=https')
|
||||
|
||||
def test_recipetool_create_git_srcbranch(self):
|
||||
self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard', 'matchbox-keyboard-0-1')
|
||||
self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;protocol=https', 'matchbox-keyboard-0-1')
|
||||
|
||||
|
||||
class RecipetoolTests(RecipetoolBase):
|
||||
|
||||
Reference in New Issue
Block a user