summaryrefslogtreecommitdiff
path: root/morphlib/remoteartifactcache.py
Commit message (Collapse)AuthorAgeFilesLines
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-3/+2
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* Build per-source rather than per-artifactRichard Maw2014-09-191-2/+2
|
* Tweak exception message of remote artifact cache GetErrorSam Thursfield2014-06-031-2/+3
| | | | | | | | | | | | | | | | | Before: ERROR: Failed to get metadata meta for the artifact file:///src/ws-baserock-hawk/baserock/ps/build-system/baserock/baserock/definitions|refs/heads/baserock/builds/778b1a370a1f43c497c1354a2a949de1/56c9ec89d09240fd80faa7d2226b7eda|core|core-devel from the artifact cache http://git.baserock.org:8080/ After: ERROR: Failed to get metadata meta for the artifact f896a081beacd4a99ded38d28b44fbf02970038fb53349265f85f8f3298ead9d.stratum.core-devel from the artifact cache http://git.baserock.org:8080/ When debugging artifact cache issues, the information that's most useful is the filename of the artfact.
* Make all remote artifact cache get errors inherit from GetErrorSam Thursfield2014-06-031-3/+3
| | | | This saves from having to catch three separate exceptions.
* Merge remote-tracking branch 'origin/danielfirth/language-changes'Lars Wirzenius2013-11-051-1/+1
|\ | | | | | | | | | | Needed to update copyright years when merging. Don't understand why the problem didn't show up earlier, since it doesn't seem to have been caused by Dan's changes.
* | Fix RemoteArtifactCache to quote filenames in URLsLars Wirzenius2013-11-041-1/+3
|/ | | | This will allow fetching of gtk+ artifacts.
* Silence log messages during unit testsLars Wirzenius2012-12-181-4/+4
|
* Catch URLError so that missing cache-servers don't cause morph to die.Daniel Silverstone2012-09-251-1/+1
| | | | Reviewed-By: Lars Wirzenius on IRC
* python scripts: pep8ize codebaseRichard Maw2012-08-011-18/+18
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Handle only the urllib2.URLError exceptionsLars Wirzenius2012-06-221-3/+7
| | | | | | | | Handling all exceptions in a way that assumes they're all related to the URL fetching hides unrelated errors, such as missing imports, or bad types, or such. Also, add more logging for debugging.
* Add logging, for debuggingLars Wirzenius2012-06-221-0/+1
|
* Prettify str(RemoteArtifactCache) to be the server URLLars Wirzenius2012-06-221-0/+3
| | | | | This makes error messages that print the artifact cache object be useful to the reader.
* Include cache id in error messageLars Wirzenius2012-06-221-2/+3
| | | | For usefulness when tracing why artifact isn't being found.
* Drop httplib2 in RemoteRepoCache, use custom HeadRequest and urllib2.Jannis Pohlmann2012-04-201-6/+13
| | | | | | | | | | | With a neat little trick, urllib2 can be made to only perform a HEAD request in urllib2.urlopen(). This is done by creating a dedicated HeadRequest class for HEAD requests and by passing such a HeadRequest to urllib2.urlopen(). This also means we no longer have to check the response status ourselves again as urllib2 will raise an exception on negative HTTP responses like 404 or 500.
* Add RemoteArtifactCache. Move metadata basename code into Artifact.Jannis Pohlmann2012-04-191-0/+98