summaryrefslogtreecommitdiff
path: root/gbp/command_wrappers.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-05-15 16:37:33 +0300
committerTzafrir Cohen <tzafrir@debian.org>2015-03-26 14:34:39 +0200
commit1dc7dd948c08f2f9abfbda1c7c3bb24a024f8905 (patch)
treea113900f60ab5dab269f0302d12496e56c7b5d1d /gbp/command_wrappers.py
parent90bafc753e7810852565f5edc6ba9d73529aec47 (diff)
common/buildpackage: support for different archive formats
Adds support for defining the archive format of the output of git_archive_single(), e.g. 'zip'. Defaults to 'tar', as before. Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r--gbp/command_wrappers.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py
index b8bd21f..f1312e4 100644
--- a/gbp/command_wrappers.py
+++ b/gbp/command_wrappers.py
@@ -233,6 +233,16 @@ class UnpackZipArchive(Command):
self.run_error = 'Couldn\'t unpack "%s"' % self.archive
+class CatenateZipArchive(Command):
+ """Wrap zipmerge tool to catenate a zip file with the next"""
+ def __init__(self, archive, **kwargs):
+ self.archive = archive
+ Command.__init__(self, 'zipmerge', [archive], **kwargs)
+
+ def __call__(self, target):
+ Command.__call__(self, [target])
+
+
class GitCommand(Command):
"Mother/Father of all git commands"
def __init__(self, cmd, args=[], **kwargs):