patchman icon indicating copy to clipboard operation
patchman copied to clipboard

Feature request - patchman-client - Ubuntu/Deb repo string consolidation

Open ryang-cvv opened this issue 3 years ago • 3 comments

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

ryang-cvv avatar May 27 '21 10:05 ryang-cvv

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

furlongm avatar May 27 '21 13:05 furlongm

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.

ryang-cvv avatar May 27 '21 23:05 ryang-cvv

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.

furlongm avatar Aug 20 '21 03:08 furlongm