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

Support multiple archives #20

Open
woky opened this issue Aug 11, 2022 · 3 comments
Open

Support multiple archives #20

woky opened this issue Aug 11, 2022 · 3 comments

Comments

@woky
Copy link
Contributor

woky commented Aug 11, 2022

Currently chisel fetches only from single suite archive. For example for jammy, in sources.list that would look like:

deb http://archive.ubuntu.com/ubuntu/ jammy main universe

#19 adds support for -updates and -security but this is not general solution. We should follow Debian RFC822 control data format for sources[1] and instead specify archives in chisel.yaml like so:

format: chisel-v1

archives:
    ubuntu:
        uri: "http://archive.ubuntu.com/ubuntu/"
        suite: jammy
        components: [main, universe]
        arch: [amd64, i386]
    ubuntu-updates:
        uri: "http://archive.ubuntu.com/ubuntu/"
        suite: jammy-updates
        components: [main, universe]
        arch: [amd64, i386]
    ubuntu-security:
        uri: "http://archive.ubuntu.com/ubuntu/"
        suite: jammy-security
        components: [main, universe]
        arch: [amd64, i386]
    ubuntu-ports:
        uri: "http://ports.ubuntu.com/ubuntu-ports/"
        suite: jammy
        components: [main, universe]
        arch: [arm64, armhf, ppc64el, riscv64, s390x]
    ubuntu-ports-updates:
        uri: "http://ports.ubuntu.com/ubuntu-ports/"
        suite: jammy-updates
        components: [main, universe]
        arch: [arm64, armhf, ppc64el, riscv64, s390x]
    ubuntu-ports-security:
        uri: "http://ports.ubuntu.com/ubuntu-ports/"
        suite: jammy-security
        components: [main, universe]
        arch: [arm64, armhf, ppc64el, riscv64, s390x]

With this we will only have to change the parser and few references to release variables and keep most of archive.go as it is.

[1] https://manpages.debian.org/testing/apt/sources.list.5.en.html#DEB822-STYLE_FORMAT

@cjdcordeiro
Copy link
Collaborator

see: #19 (comment) as a reference request for implementation

@endersonmaia
Copy link

Would it be in the scope of chisel to suport a debian (or any other debian base distro) ?

Something like:

format: chisel-v1

archives:
    debian:
        uri: "http://archive.debian.org/debian/"
        suite: bookworm
        components: [main, universe]
        arch: [amd64, i386]

@cjdcordeiro
Copy link
Collaborator

@endersonmaia I'm afraid not, at least not for now. The initial support for multiple archives will only target Ubuntu archives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants