-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add deb822 for aptpkg #67956
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
base: master
Are you sure you want to change the base?
Add deb822 for aptpkg #67956
Conversation
3786706 to
88ede53
Compare
4a2eea1 to
335b9f4
Compare
8bcc3d2 to
6d4e13f
Compare
Co-authored-by: Marek Czernek <[email protected]>
Co-authored-by: Marek Czernek <[email protected]>
6d4e13f to
00c5697
Compare
|
I don't think we can bring GPL code in... |
|
@twangboy the copy is not exact 1:1 copy as I've removed some not required parts and aligned with the code style of salt, but the structure of the classes and the behaviour is the same. What should we do in this case? Refactor the implementation completely? It could take quite some time and could cause some misalignments with the apt implementation (which maybe not that important in such case, but from my point of view it's better to keep it aligned). I'm not deeply familiar with the licensing, but I supposed Apache-2.0 licensed projects could use GPL code as Apache-2.0 is more flexible, but I could be wrong and mixing different things. |
What does this PR do?
Add support of
deb822format toaptpkgmodule to make it working with the latest Debian based distros.IMPORTANT NOTE:It's basically the copy ofaptsourcesimplementation frompython-aptmodule which is licensed asGPL-2.0, so not sure if it's fine to copy some parts of implementation here. It's better to review if it's legally fine.This PR replaces #67748
What issues does this PR fix or reference?
Tracks: https://github.com/SUSE/spacewalk/issues/25989
Previous Behavior
aptpkgwas ignoringdeb822sources and was unable to manipulate themNew Behavior
aptpkgis able to list, modify and delete the repo sources ofdeb822format with mimicing the output to the similar to traditional to prevent rewriting the states relying on source line formatMerge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes/No