aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
Diffstat (limited to 'gbp')
-rw-r--r--gbp/deb.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/gbp/deb.py b/gbp/deb.py
index 4d650676..7261134b 100644
--- a/gbp/deb.py
+++ b/gbp/deb.py
@@ -244,8 +244,14 @@ def orig_file(cp, compression):
def is_native(cp):
- "Is this a debian native package"
- return [ True, False ]['-' in cp['Version']]
+ """
+ Is this a debian native package
+ >>> is_native(dict(Version="1"))
+ True
+ >>> is_native(dict(Version="1-1"))
+ False
+ """
+ return not '-' in cp['Version']
def is_valid_packagename(name):
"Is this a valid Debian package name?"