composer/composer — pull request #2753 by naderman (2014-02-24 17:41:40+00:00)
Title: Fail over from source to dist and vice versa when downloads fail

Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.