From 6d901c09f611b3cb98d6b88bf99810782610c617 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Mon, 17 Dec 2012 14:16:53 +0000 Subject: Add ExtractedTarball class and method to extract/mount an artifact 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. --- without-test-modules | 1 + 1 file changed, 1 insertion(+) (limited to 'without-test-modules') diff --git a/without-test-modules b/without-test-modules index bd82963f..7ba80129 100644 --- a/without-test-modules +++ b/without-test-modules @@ -6,6 +6,7 @@ morphlib/git.py morphlib/fsutils.py morphlib/app.py morphlib/mountableimage.py +morphlib/extractedtarball.py morphlib/plugins/hello_plugin.py morphlib/plugins/graphing_plugin.py morphlib/plugins/syslinux-disk-systembuilder_plugin.py -- cgit v1.2.1