Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to main staging repo #2075

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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