Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryang-cvv opened this issue May 27, 2021 · 3 comments
Open

Comments

@ryang-cvv
Copy link

ryang-cvv commented May 27, 2021

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

@furlongm
Copy link
Owner

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

@ryang-cvv
Copy link
Author

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.

@furlongm
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants