Skip to content

Commit b5bf087

Browse files
committed
Transition to main staging repo
1 parent e0b6967 commit b5bf087

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

scripts/pop-ci/src/main.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,19 @@ sudo sbuild-update \
457457
}
458458
}
459459

460+
// Transition master pockets to main pockets, if main pocket does not exist
461+
{
462+
for suite in Suite::ALL.iter() {
463+
let main_key = (Pocket::new("main"), suite.clone());
464+
if ! repo_ctx.pockets.contains_key(&main_key) {
465+
let master_key = (Pocket::new("master"), suite.clone());
466+
if let Some(entry) = repo_ctx.pockets.remove(&master_key) {
467+
repo_ctx.pockets.insert(main_key, entry);
468+
}
469+
}
470+
}
471+
}
472+
460473
for ((pocket, suite), (commit, branch)) in repo_ctx.pockets.iter() {
461474
let build = repo_ctx.builds.entry(commit.clone())
462475
.or_insert(RepoBuild::default());
@@ -1058,7 +1071,7 @@ sudo sbuild-update \
10581071
pool_rebuilt = true;
10591072
}
10601073

1061-
if pocket.id() == "master" && launchpad {
1074+
if pocket.id() == "main" && launchpad {
10621075
for (changes_name, changes_path) in package.changes.iter() {
10631076
let dput = match repo_info.dput {
10641077
Some(some) => some,

scripts/pop-ci/src/repo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl RepoInfo {
102102
_ => Self {
103103
key: fs::canonicalize("scripts/.iso.asc").expect("failed to find ISO key"),
104104
release: "http://apt.pop-os.org/release",
105-
staging: "http://apt.pop-os.org/staging/master",
105+
staging: "http://apt.pop-os.org/staging/main",
106106
dput: None,
107107
archs: ARCHS,
108108
},

0 commit comments

Comments
 (0)