[Merge] ~ghadi-rahme/ubuntu/+source/ppa-purge:ubuntu/devel into ubuntu/+source/ppa-purge:ubuntu/devel
git-ubuntu bot
mp+460394 at code.launchpad.net
Mon Feb 12 16:22:21 UTC 2024
You have been requested to review the proposed merge of ~ghadi-rahme/ubuntu/+source/ppa-purge:ubuntu/devel into ubuntu/+source/ppa-purge:ubuntu/devel.
For more details, see:
https://code.launchpad.net/~ghadi-rahme/ubuntu/+source/ppa-purge/+git/ppa-purge/+merge/460394
Currently ppa-purge will fail to revert packages on distributions using the deb822 source format. Starting with Mantic, deb822 ".sources" files have replaced the ".list" source files which lead to ppa-purge failing to disable the ppa on the system and causing the packages to not be downgraded to their initial version.
Disabling a ".sources" can be done in two main ways:
1- commenting out every line of the file (very messy and annoying to undo manually)
2- setting "Enabled: no" in the file
This patch disables ".sources" files using the second method.
Starting with this patch, ppa-purge will first iterate over all the ".list" files as before and then iterate over all the ".sources" files adding "Enabled: no" at the top of the file or setting any instance of "Enabled:" to "Enabled: no" in case "Enabled: yes" happened to be defined.
Patch was tested using the oibaf mesa ppa (https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers) in a Mantic lxc container.
--
Your team Ubuntu Sponsors is requested to review the proposed merge of ~ghadi-rahme/ubuntu/+source/ppa-purge:ubuntu/devel into ubuntu/+source/ppa-purge:ubuntu/devel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 1115 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-sponsors/attachments/20240212/58991954/attachment-0001.diff>
More information about the Ubuntu-sponsors
mailing list