aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/deb
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-01-12 15:24:19 +0200
committerGuido Günther <agx@sigxcpu.org>2012-01-15 19:55:40 +0100
commitd47358201156967114dbb232a0438e6a3cb8842c (patch)
treeab8d5d8a822b61e73c39c35dc10297469c91e0cc /gbp/deb
parent2aa428256885b9d2429a83c51065a42de6d0c242 (diff)
deb: minor refactor of parameters of has_orig()
Diffstat (limited to 'gbp/deb')
-rw-r--r--[-rwxr-xr-x]gbp/deb/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/deb/__init__.py b/gbp/deb/__init__.py
index 1f52b17f..92d893ab 100755..100644
--- a/gbp/deb/__init__.py
+++ b/gbp/deb/__init__.py
@@ -429,10 +429,10 @@ def get_compression(orig_file):
return None
-def has_orig(cp, compression, dir):
- "Check if orig.tar.gz exists in dir"
+def has_orig(orig_file, dir):
+ "Check if orig tarball exists in dir"
try:
- os.stat( os.path.join(dir, orig_file(cp, compression)) )
+ os.stat( os.path.join(dir, orig_file) )
except OSError:
return False
return True