1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-14 03:49:48 +03:00

Replace pmaports channels stable, stable-next (MR 2032)

Translate the pmaports channels "stable" to "v20.05" and "stable-next"
to "v21.03", so these have the same channel name as the pmaports.git
branch name.

The original plan was to switch the "stable" channel from the "v20.05"
branch to the "v21.03" branch when the release is done. However, now
that we are close to that, I'm realizing that this would not be useful.
It would lead to conflicts in the dir with locally built packages
(default: ~/.local/var/pmbootstrap/packages/$CHANNEL). And it would make
it awkward to go back to a previous branch (we may name it old-stable
for the time being, but what after that, old-old-stable?).
This commit is contained in:
Oliver Smith 2021-03-02 19:47:58 +01:00
parent 5c1c126647
commit 278dfced61
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
13 changed files with 90 additions and 25 deletions

View file

@ -36,7 +36,7 @@ def test_alpine_apkindex_path(args):
def test_urls(args, monkeypatch):
func = pmb.helpers.repo.urls
channel = "stable"
channel = "v20.05"
args.mirror_alpine = "http://localhost/alpine/"
# Second mirror with /master at the end is legacy, gets fixed by func.
@ -50,7 +50,7 @@ def test_urls(args, monkeypatch):
return {"channel": channel}
monkeypatch.setattr(pmb.config.pmaports, "read_config", read_config)
# Channel: stable
# Channel: v20.05
assert func(args) == ["/mnt/pmbootstrap-packages",
"http://localhost/pmos1/v20.05",
"http://localhost/pmos2/v20.05",