Skip to content
Open
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
13 changes: 10 additions & 3 deletions daemon/src/release/repos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,23 @@ fn update_preferences_script(release: &str) -> anyhow::Result<()> {
}

fn system_sources(release: &str) -> String {
let ubuntu_mirror = if cfg!(any(target_arch = "x86", target_arch = "x86_64")) {
"http://us.archive.ubuntu.com/ubuntu/"
} else {
"http://ports.ubuntu.com/ubuntu-ports/"
};

format!(
r#"X-Repolib-Name: Pop_OS System Sources
Enabled: yes
Types: deb deb-src
URIs: http://us.archive.ubuntu.com/ubuntu/
URIs: {1}
Suites: {0} {0}-security {0}-updates {0}-backports
Components: main restricted universe multiverse
X-Repolib-Default-Mirror: http://us.archive.ubuntu.com/ubuntu/
X-Repolib-Default-Mirror: {1}
"#,
release
release,
ubuntu_mirror,
)
}

Expand Down