gocd-contrib / deb-repo-poller

GoCD plugin to poll debain repository
Apache License 2.0
8 stars 8 forks source link

Fix the returned location of packages. #7

Open stevendgonzales opened 9 years ago

stevendgonzales commented 9 years ago

A request to http://in.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/ for package account-plugin-aim_3.8.6-0ubuntu9_amd64.deb should return a file location of http://in.archive.ubuntu.com/ubuntu/pool/main/e/empathy/account-plugin-aim_3.8.6-0ubuntu9_amd64.deb

The existing file location returned was incorrectly returning: http://in.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/pool/main/e/empathy/account-plugin-aim_3.8.6-0ubuntu9_amd64.deb

Unit test has been included as well as updating test that pointed at saucy repo (no longer there) to point at trusty.

closes #6

scottmuc commented 9 years ago

I made a private build of this and deb-repo-query and set it up on a testing go server instance. With a deb package material only, I was able to use these changes with our internal apt-repo instance.

Would love to have a release of this so we don't use my private build on our go infrastructure :)