summaryrefslogtreecommitdiff
path: root/morphlib/extractedtarball.py
Commit message (Collapse)AuthorAgeFilesLines
* Stop using bare except: statementsLars Wirzenius2013-04-161-3/+8
| | | | | | | | | It is almost never a good idea to catch all exceptions, and then do nothing about them. This patch logs all caught exceptions so that the user has some possibilty to debug what is happening. Also, make ./check check for bare excepts and fail the test suite if it finds anything.
* Add ExtractedTarball class and method to extract/mount an artifactJannis Pohlmann2013-02-211-0/+61
ExtractedTarball is more or less the equivalent to MountableImage for artifacts that are not mountable images. So in order to inspect root file system tarballs, ExtractedTarball can be used, for disk images, MountableImage can be used. The morphlib.bins.call_in_artifact_directory() method combines these two classes and provides a way to extract/mount an artifact and call a callback with the temporary directory / mount point as its first argument. Using this, a plugin that runs a command relative to an artifact's root directory can be written easily.