summaryrefslogtreecommitdiff
path: root/gbp/deb/pristinetar.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-02-08 14:26:24 +0200
committerGuido Günther <agx@sigxcpu.org>2012-05-01 22:28:19 +0200
commit082679da5004790d5d5bf19ede8a657f6c2b8769 (patch)
treeda2955c480d6bb3b27ff4f3e6dc7bd5d6b558cf2 /gbp/deb/pristinetar.py
parent3308868a275d3ba96e411dab469367f14c767683 (diff)
Refactor deb helpers: move build_tarball_name()
from UpstreamSource class to DebianPkgPolicy.
Diffstat (limited to 'gbp/deb/pristinetar.py')
-rw-r--r--gbp/deb/pristinetar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gbp/deb/pristinetar.py b/gbp/deb/pristinetar.py
index 2ac82ef..a2f191f 100644
--- a/gbp/deb/pristinetar.py
+++ b/gbp/deb/pristinetar.py
@@ -20,7 +20,7 @@ import os, re
import gbp.log
from gbp.command_wrappers import Command
from gbp.pkg import compressor_opts
-from gbp.deb import UpstreamSource
+from gbp.deb import DebianPkgPolicy
class PristineTar(Command):
"""The pristine-tar branch in a git repository"""
@@ -91,10 +91,10 @@ class PristineTar(Command):
@param output_dir: the directory to put the tarball into
@type output_dir: C{str}
"""
- name = UpstreamSource.build_tarball_name(package,
- version,
- comp_type,
- output_dir)
+ name = DebianPkgPolicy.build_tarball_name(package,
+ version,
+ comp_type,
+ output_dir)
self._checkout(name)
def commit(self, archive, upstream):