-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
pacman: re-adding support for URL based pkgs #4286
pacman: re-adding support for URL based pkgs #4286
Conversation
Added test and fixed a few rough edges. With this, using URL/filenames in both I'm not super happy about how the tests look now, but I think a refactoring for this can wait. |
7801ee2
to
ab569a0
Compare
@felixfontein I think this is ready for review now. If you have ideas on how to rework the code for easier testing without as much boilerplate, I'm all ears. |
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.
Two improvements (these can help debugging). Besides that, LGTM.
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
1f2f199
to
e7f0ab7
Compare
Version checking for URL packages is left to pacman, so add a check after the dry run to see if it would actually install anything.
As mentioned in #4298 , the last few commits add integration tests for URL based package installation. |
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4302 🤖 @patchback |
* pacman: re-adding support for URL based pkgs * Update plugins/modules/packaging/os/pacman.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/packaging/os/pacman.py Co-authored-by: Felix Fontein <[email protected]> * cmd=cmd in every call to self.fail() * pacman: integration test for mixed pkg sources * Add more tests + fix minor bug with URL packages Version checking for URL packages is left to pacman, so add a check after the dry run to see if it would actually install anything. * remove double templating Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit a9db474)
@jraby thanks for fixing this and adding more tests :) |
* pacman: re-adding support for URL based pkgs * Update plugins/modules/packaging/os/pacman.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/packaging/os/pacman.py Co-authored-by: Felix Fontein <[email protected]> * cmd=cmd in every call to self.fail() * pacman: integration test for mixed pkg sources * Add more tests + fix minor bug with URL packages Version checking for URL packages is left to pacman, so add a check after the dry run to see if it would actually install anything. * remove double templating Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit a9db474) Co-authored-by: Jean Raby <[email protected]>
@felixfontein thanks for setting up the integration tests stuff! |
@jraby yw! Feel free to add more tests ;) |
SUMMARY
Fixes #4285
consider this a draft, it still lacks test cases for URL based packages.ISSUE TYPE
COMPONENT NAME
pacman