Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vzhestkov
Copy link
Contributor

@vzhestkov vzhestkov commented Apr 11, 2025

What does this PR do?

Add support of deb822 format to aptpkg module to make it working with the latest Debian based distros.

IMPORTANT NOTE: It's basically the copy of aptsources implementation from python-apt module which is licensed as GPL-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

aptpkg was ignoring deb822 sources and was unable to manipulate them

New Behavior

aptpkg is able to list, modify and delete the repo sources of deb822 format with mimicing the output to the similar to traditional to prevent rewriting the states relying on source line format

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

@vzhestkov vzhestkov requested a review from a team as a code owner April 11, 2025 06:57
@vzhestkov vzhestkov force-pushed the add-deb822-for-aptpkg branch from 3786706 to 88ede53 Compare April 11, 2025 10:05
@vzhestkov vzhestkov force-pushed the add-deb822-for-aptpkg branch from 4a2eea1 to 335b9f4 Compare April 24, 2025 10:06
@vzhestkov vzhestkov changed the title WIP: Add deb822 for aptpkg Add deb822 for aptpkg Apr 24, 2025
@dwoz dwoz force-pushed the add-deb822-for-aptpkg branch from 8bcc3d2 to 6d4e13f Compare June 23, 2025 23:16
@twangboy
Copy link
Contributor

twangboy commented Aug 6, 2025

I don't think we can bring GPL code in...

@vzhestkov
Copy link
Contributor Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants