aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-02-07 22:55:48 +0100
committerGuido Günther <agx@sigxcpu.org>2012-02-07 23:23:49 +0100
commitddbc17404620d35f0f3ba801184d7cb93bbeb539 (patch)
treec656df02b98e16497e5be61ad4316de93937b814 /gbp/scripts
parentcc6ee3b56a1ad9967c9d92dfcf1159a2a30e007d (diff)
UpstreamSource: turn is_* vars and properties into methods
since this is more consistent with the other is_* methods in other classes.
Diffstat (limited to 'gbp/scripts')
-rw-r--r--gbp/scripts/import_orig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index 98a43d2b..0fbd7cdc 100644
--- a/gbp/scripts/import_orig.py
+++ b/gbp/scripts/import_orig.py
@@ -62,7 +62,7 @@ class OrigUpstreamSource(UpstreamSource):
"""
if ((options.pristine_tar and options.filter_pristine_tar and len(options.filters) > 0)):
return True
- elif not self.is_orig:
+ elif not self.is_orig():
if len(options.filters):
return True
elif options.pristine_tar:
@@ -224,7 +224,7 @@ def find_source(options, args):
def repacked_tarball_name(source, name, version):
- if source.is_orig:
+ if source.is_orig():
# Repacked orig tarballs get need a different name since there's already
# one with that name
name = os.path.join(
@@ -242,7 +242,7 @@ def repack_source(source, name, version, tmpdir, filters):
"""Repack the source tree"""
name = repacked_tarball_name(source, name, version)
repacked = source.pack(name, filters)
- if source.is_orig: # the tarball was filtered on unpack
+ if source.is_orig(): # the tarball was filtered on unpack
repacked.unpacked = source.unpacked
else: # otherwise unpack the generated tarball get a filtered tree
if tmpdir:
@@ -360,7 +360,7 @@ def main(argv):
if repo.bare:
set_bare_repo_options(options)
- if not source.is_dir:
+ if not source.is_dir():
tmpdir = tempfile.mkdtemp(dir='../')
source.unpack(tmpdir, options.filters)
gbp.log.debug("Unpacked '%s' to '%s'" % (source.path, source.unpacked))