composer/composer — pull request #1038 by CHH (2012-08-29 13:20:09+00:00)
Title: Append "/packages.json" to URLs of composer repositories only when not already present

This patch changes the `ComposerRepository` to only add the `/packages.json` path to the URL when it's not already in the URL. The reason behind this, is that we need to pass query parameters after `packages.json` so we can put `packages.json` as non-public file to S3 and use [Query Parameter Authentication].

[Query Parameter Authentication]: http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html