diff options
author | Chow Loong Jin <hyperair@ubuntu.com> | 2011-03-18 19:53:55 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-03-18 19:53:55 +0100 |
commit | e79dfe5563c13f5765c2cb352319ff8183a1a745 (patch) | |
tree | 9dc7be4f5e794c07f75bf9fbcb5c72dce11afe19 | |
parent | 7dcf49d5847b7eb2925f774aa19141e9b0847644 (diff) |
command_wrappers: Add create tar archive
Git-Dch: Ignore
-rw-r--r-- | gbp/command_wrappers.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index 1dced063..64300cfb 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -159,6 +159,16 @@ class RepackTarArchive(Command): self.run_error = 'Couldn\'t repack "%s"' % self.archive +class CatenateTarArchive(Command): + """Wrap tar to catenate a tar file with the next""" + def __init__(self, archive, **kwargs): + self.archive = archive + Command.__init__(self, 'tar', ['-A', '-f', archive], **kwargs) + + def __call__(self, target): + Command.__call__(self, [target]) + + class RemoveTree(Command): "Wrap rm to remove a whole directory tree" def __init__(self, tree): |