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
repo: always use host release and arch for Ubuntu #3006
Conversation
- Remove dependency of ProjectOptions parameter. - Update format_sources_list() tp query release arch/release separately. Update tests accordingly. Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
snapcraft/internal/repo/_deb.py
Outdated
def _format_sources_list(sources_list: str, *, deb_arch: str, release: str = "xenial"): | ||
def _format_sources_list(sources_list: str): | ||
release = os_release.OsRelease().version_codename() | ||
deb_arch = snapcraft.ProjectOptions().deb_arch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this can go away completely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, i ditched $suffix and $prefix. I was originally going to wait on that, but it's here now. :D
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
btw, you have format issues |
Fixed |
Remove dependency of ProjectOptions parameter.
Update format_sources_list() tp query release arch/release
separately.
Update tests accordingly.
Signed-off-by: Chris Patterson chris.patterson@canonical.com
./runtests.sh static
?./runtests.sh tests/unit
?