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

repos: adds a endpoint to retrieve a deb or rpm repo file #212

Merged
merged 1 commit into from Oct 31, 2016

Conversation

andrewschoen
Copy link
Contributor

This endpoint can be used by clients to get the contents of
a rpm repo or deb list file for a specific repo, allowing for
clients to easily consume the repos built by chacra.

The endpoint exists at two places:

repo/$project/$ref/$sha1/$distro/$distro_version/repo/

repo/$project/$ref/$sha1/$distro/$distro_version/flavors/$flavor/repo/

Signed-off-by: Andrew Schoen aschoen@redhat.com

This endpoint can be used by clients to get the contents of
a rpm repo or deb list file for a specific repo, allowing for
clients to easily consume the repos built by chacra.

The endpoint exists at two places:

repo/$project/$ref/$sha1/$distro/$distro_version/repo/

repo/$project/$ref/$sha1/$distro/$distro_version/flavors/$flavor/repo/

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
return self.repo_obj

@expose('mako:repo.mako')
def repo(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for DEB distros you would need to accept a query arg that allows to pass in the distro needed. A combined DEB repo cannot know what repo file to work with.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so because the endpoint where this exists will already know the distro and distro version. The url would look something like this:

https://chacra.ceph.com/repos/ceph/jewel/ecc23778eb545d8dd55e2e4735b53cc93f92e65b/ubuntu/xenial/repo/

@alfredodeza alfredodeza merged commit ef1f7b4 into master Oct 31, 2016
@alfredodeza alfredodeza deleted the repo-endpoint branch October 31, 2016 20:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants