Skip to content

Commit

Permalink
Transition to main staging repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Sep 29, 2023
1 parent e0b6967 commit b5bf087
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion scripts/pop-ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,19 @@ sudo sbuild-update \
}
}

// Transition master pockets to main pockets, if main pocket does not exist
{
for suite in Suite::ALL.iter() {
let main_key = (Pocket::new("main"), suite.clone());
if ! repo_ctx.pockets.contains_key(&main_key) {
let master_key = (Pocket::new("master"), suite.clone());
if let Some(entry) = repo_ctx.pockets.remove(&master_key) {
repo_ctx.pockets.insert(main_key, entry);
}
}
}
}

for ((pocket, suite), (commit, branch)) in repo_ctx.pockets.iter() {
let build = repo_ctx.builds.entry(commit.clone())
.or_insert(RepoBuild::default());
Expand Down Expand Up @@ -1058,7 +1071,7 @@ sudo sbuild-update \
pool_rebuilt = true;
}

if pocket.id() == "master" && launchpad {
if pocket.id() == "main" && launchpad {
for (changes_name, changes_path) in package.changes.iter() {
let dput = match repo_info.dput {
Some(some) => some,
Expand Down
2 changes: 1 addition & 1 deletion scripts/pop-ci/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl RepoInfo {
_ => Self {
key: fs::canonicalize("scripts/.iso.asc").expect("failed to find ISO key"),
release: "http://apt.pop-os.org/release",
staging: "http://apt.pop-os.org/staging/master",
staging: "http://apt.pop-os.org/staging/main",
dput: None,
archs: ARCHS,
},
Expand Down

0 comments on commit b5bf087

Please sign in to comment.