patchman
patchman copied to clipboard
Feature request - patchman-client - Ubuntu/Deb repo string consolidation
It looks like you're currently taking the apt repo URL and using that as the name, it would tidy up the repo screen to use release names/labels instead, paired w/ archive name, component, etc.
Then you'd be able to list mirrors and process them as such as well.
My sed-fu is not strong enough to assist more, sorry. :(
apt-cache policy | grep -E "[0-9]{1,5} http(s)?:" -A 1
500 https://repo.openbytes.ie/ubuntu bionic/main amd64 Packages
release o=openbytes,n=bionic,l=openbytes,c=main,b=amd64
--
500 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages
release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=multiverse,b=amd64
...
Good idea! I've wondered how to make this better.
I guess it won't distinguish between the same mirrors on different hosts though?
I was tracking this here:
https://github.com/furlongm/patchman/projects/1#card-25812853
How is it handled for yum repos? Not sure it even matters to be honest, if they're all the same repo hash, it's all the same data - in theory.
I had issues when trying to auto-combine empty repos, because they all ended up with the same hash. Then if a package was added, there was no way to uncombine them.