aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/deb.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-07-30 10:17:25 +0200
committerGuido Günther <agx@sigxcpu.org>2011-07-30 14:38:32 +0200
commit1804b1f64d33291f1b6832384d56a7ed16fa47e6 (patch)
tree0b8ba7b28b4039ddb2954691701b8552e2b228e8 /gbp/deb.py
parent2fbac773f79a4c6cf074e29804244ea90b9b1cb4 (diff)
Epydoc indentation
Git-Dch: Ignore
Diffstat (limited to 'gbp/deb.py')
-rw-r--r--gbp/deb.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/gbp/deb.py b/gbp/deb.py
index ffd1508b..a45f18cf 100644
--- a/gbp/deb.py
+++ b/gbp/deb.py
@@ -407,6 +407,7 @@ def orig_file(cp, compression):
def is_native(cp):
"""
Is this a debian native package
+
>>> is_native(dict(Version="1"))
True
>>> is_native(dict(Version="1-1"))
@@ -425,6 +426,7 @@ def is_valid_upstreamversion(version):
def get_compression(orig_file):
"""
Given an orig file return the compression used
+
>>> get_compression("abc.tar.gz")
'gzip'
>>> get_compression("abc.tar.bz2")
@@ -492,14 +494,15 @@ def parse_uscan(out):
downloaded and could be located. If the tarball can't be located it returns
(True, None). Returns (False, None) if the current version is up to date.
- @param out: uscan output
- @type out: string
- @return: status and tarball name
- @rtype: tuple
>>> parse_uscan("<status>up to date</status>")
(False, None)
>>> parse_uscan("<target>virt-viewer_0.4.0.orig.tar.gz</target>")
(True, '../virt-viewer_0.4.0.orig.tar.gz')
+
+ @param out: uscan output
+ @type out: string
+ @return: status and tarball name
+ @rtype: tuple
"""
source = None
if "<status>up to date</status>" in out: