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
Make ::contrib a noop on OSes without a contrib package #1309
Make ::contrib a noop on OSes without a contrib package #1309
Conversation
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.
If it's a virtual, I wonder if a solution that also works for Gentoo (which also doesn't have a real package) would be better. Like making contrib_package_name
an Optional[String[1]]
and if it's undef
then don't install it.
I'm not sure that's the best solution either. What are your thoughts on it?
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 think that a $contrib_virtual_package
is not needed at all. Instead, what I meant was to make $contrib_package_name
itself default to undef
if there is no (real) contrib package.
7e7fc58
to
0e5cb49
Compare
f57f823
to
6050cfb
Compare
- In debian families: postgresql-contrib is a virtual package and it is not needed to be installed. - Archlinux does have postgresql-contrib but it isn't maintained - Gentoo provides contrib in the main package Referencies: https://packages.debian.org/bullseye/postgresql-contrib-13 https://packages.ubuntu.com/bionic/postgresql-contrib
6050cfb
to
70a0f3c
Compare
Now the contrib package is not installed in Debian So test must check RedHat for exmaple Gentoo is not failing so raise check should not be done anymore.
70a0f3c
to
f10a335
Compare
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.
This is indeed the implementation I suggested. Minor testing suggestion, but otherwise 👍
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.
Code wise this looks good to me. I started the tests and if they're green this should be merged. Thanks!
@ekohl can you help me? I don't know why some of them where canceled :( |
Looks like they timed out but I think it's safe to ignore those so I'm going to go ahead and merge this. Thanks @carlosduelo! |
…b-is-virtual-package-some-dists debian package postgresql-contrib virtual package
Debian family provides postgresql-contriub-XY as a virtual package of postgresql-XY.
Not sure if allowing virtual packages here is the best solution 🤔
Referencies:
https://packages.debian.org/bullseye/postgresql-contrib-13
https://packages.ubuntu.com/bionic/postgresql-contrib