diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-01-13 09:07:19 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-01-22 19:45:26 +0100 |
commit | 5b5dbf61244708d9d234a3ef90ce85cd4f35f259 (patch) | |
tree | 4ac0abfab8629011418c4bc6852b423295b1a2f3 /gbp/command_wrappers.py | |
parent | 63b24cef4db5277eff7b38bbe359fc30f9d28b90 (diff) |
PristineTar: move to separate module
and make it accessible from GitRepository to group
checkout/checkin/lookup.
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r-- | gbp/command_wrappers.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index 856ad1b7..f22375d8 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -126,24 +126,6 @@ class RunAtCommand(Command): raise -class PristineTar(Command): - cmd='/usr/bin/pristine-tar' - branch='pristine-tar' - - def __init__(self): - if not os.access(self.cmd, os.X_OK): - raise GbpError, "%s not found - cannot use pristine-tar" % self.cmd - Command.__init__(self, self.cmd) - - def commit(self, archive, branch): - self.run_error = 'Couldn\'t commit to "%s"' % branch - self.__call__(['commit', archive, branch]) - - def checkout(self, archive): - self.run_error = 'Couldn\'t checkout "%s"' % os.path.basename(archive) - self.__call__(['checkout', archive]) - - class UnpackTarArchive(Command): """Wrap tar to unpack a compressed tar archive""" def __init__(self, archive, dir, filters=[], compression=None): |