[Merge] ~ghadi-rahme/ubuntu/+source/ppa-purge:ubuntu/devel into ubuntu/+source/ppa-purge:ubuntu/devel
Julian Andres Klode
mp+460394 at code.launchpad.net
Thu Feb 15 12:04:38 UTC 2024
Oh thank you!
Sadly this needs some more work to produce sensible results in case users add comments or multiple sections:
The easiest I suppose for the else case is to find the Components: line(s) and insert an Enabled: no line after it - this would be really lovely. Like with awk one could do '/^Components/ { print; print "Enabled: no" }' or something like that perhaps.
This doesn't fully address the issue for the if case but it at least is guaranteed to produce a correct sources file if the input was correct!
--
https://code.launchpad.net/~ghadi-rahme/ubuntu/+source/ppa-purge/+git/ppa-purge/+merge/460394
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.
More information about the Ubuntu-sponsors
mailing list