diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2026-04-09 13:10:53 +0200 |
|---|---|---|
| committer | Paul Barker <paul@pbarker.dev> | 2026-04-10 11:53:18 +0100 |
| commit | e2b0ffbd78a9f36e2f9b635ee7314656eaee364d (patch) | |
| tree | ccda8e38ab547824aaccc5a43e5e36828d16a4cd /meta/lib/oeqa/selftest/cases | |
| parent | f5a60f98884e41b131172263aecda1be573a5426 (diff) | |
| download | poky-e2b0ffbd78a9f36e2f9b635ee7314656eaee364d.tar.gz | |
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>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/fetch.py | 2 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/fetch.py b/meta/lib/oeqa/selftest/cases/fetch.py index be14272e63..b5c09355fe 100644 --- a/meta/lib/oeqa/selftest/cases/fetch.py +++ b/meta/lib/oeqa/selftest/cases/fetch.py | |||
| @@ -34,6 +34,7 @@ PREMIRRORS:forcevariable = "" | |||
| 34 | # No mirrors and broken git, should fail | 34 | # No mirrors and broken git, should fail |
| 35 | features = """ | 35 | features = """ |
| 36 | DL_DIR = "%s" | 36 | DL_DIR = "%s" |
| 37 | SRC_URI:pn-dbus-wait = "git://git.yoctoproject.org/dbus-wait;branch=master;protocol=git" | ||
| 37 | GIT_PROXY_COMMAND = "false" | 38 | GIT_PROXY_COMMAND = "false" |
| 38 | MIRRORS:forcevariable = "" | 39 | MIRRORS:forcevariable = "" |
| 39 | PREMIRRORS:forcevariable = "" | 40 | PREMIRRORS:forcevariable = "" |
| @@ -46,6 +47,7 @@ PREMIRRORS:forcevariable = "" | |||
| 46 | # Broken git but a specific mirror | 47 | # Broken git but a specific mirror |
| 47 | features = """ | 48 | features = """ |
| 48 | DL_DIR = "%s" | 49 | DL_DIR = "%s" |
| 50 | SRC_URI:pn-dbus-wait = "git://git.yoctoproject.org/dbus-wait;branch=master;protocol=git" | ||
| 49 | GIT_PROXY_COMMAND = "false" | 51 | GIT_PROXY_COMMAND = "false" |
| 50 | MIRRORS:forcevariable = "git://.*/.* http://downloads.yoctoproject.org/mirror/sources/" | 52 | MIRRORS:forcevariable = "git://.*/.* http://downloads.yoctoproject.org/mirror/sources/" |
| 51 | """ % dldir | 53 | """ % dldir |
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index a2d8d292ad..adbf0c15f0 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
| @@ -359,7 +359,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
| 359 | tempsrc = os.path.join(self.tempdir, 'srctree') | 359 | tempsrc = os.path.join(self.tempdir, 'srctree') |
| 360 | os.makedirs(tempsrc) | 360 | os.makedirs(tempsrc) |
| 361 | recipefile = os.path.join(self.tempdir, 'libmatchbox.bb') | 361 | recipefile = os.path.join(self.tempdir, 'libmatchbox.bb') |
| 362 | srcuri = 'git://git.yoctoproject.org/libmatchbox' | 362 | srcuri = 'git://git.yoctoproject.org/libmatchbox;protocol=https' |
| 363 | result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc]) | 363 | result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc]) |
| 364 | self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output) | 364 | self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output) |
| 365 | checkvars = {} | 365 | checkvars = {} |
| @@ -512,13 +512,13 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
| 512 | self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard') | 512 | self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard') |
| 513 | 513 | ||
| 514 | def test_recipetool_create_git_srcuri_master(self): | 514 | def test_recipetool_create_git_srcuri_master(self): |
| 515 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master') | 515 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master;protocol=https') |
| 516 | 516 | ||
| 517 | def test_recipetool_create_git_srcuri_branch(self): | 517 | def test_recipetool_create_git_srcuri_branch(self): |
| 518 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1') | 518 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1;protocol=https') |
| 519 | 519 | ||
| 520 | def test_recipetool_create_git_srcbranch(self): | 520 | def test_recipetool_create_git_srcbranch(self): |
| 521 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard', 'matchbox-keyboard-0-1') | 521 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;protocol=https', 'matchbox-keyboard-0-1') |
| 522 | 522 | ||
| 523 | 523 | ||
| 524 | class RecipetoolTests(RecipetoolBase): | 524 | class RecipetoolTests(RecipetoolBase): |
