From 413b027ca3340abd9b8b3288ce81988f264123f1 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 10 Jan 2017 19:24:58 +0100 Subject: Improve wording Git-Dch: Ignore --- gbp/pkg/__init__.py | 2 +- gbp/scripts/common/import_orig.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py index 70bcb21e..03cf581b 100644 --- a/gbp/pkg/__init__.py +++ b/gbp/pkg/__init__.py @@ -291,7 +291,7 @@ class UpstreamSource(object): def is_orig(self): """ - @return: C{True} if sources are suitable as upstream source, + @return: C{True} if sources are suitable as orig tarball, C{False} otherwise @rtype: C{bool} """ diff --git a/gbp/scripts/common/import_orig.py b/gbp/scripts/common/import_orig.py index d52e8ec6..b21bac9b 100644 --- a/gbp/scripts/common/import_orig.py +++ b/gbp/scripts/common/import_orig.py @@ -119,7 +119,7 @@ def repacked_tarball_name(source, name, version): os.path.dirname(source.path), os.path.basename(source.path).replace(".tar", ".gbp.tar")) else: - # Repacked sources or other archives get canonical name + # non tarballs (zips, unpacked dirs) get the canonical name name = os.path.join( os.path.dirname(source.path), "%s_%s.orig.tar.bz2" % (name, version)) @@ -130,9 +130,9 @@ 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(): # Orig already was a tarball so it was filtered on unpack repacked.unpacked = source.unpacked - else: # otherwise unpack the generated tarball to get a filtered tree + else: # otherwise unpack the generated tarball again to get a filtered tree if tmpdir: cleanup_tmp_tree(tmpdir) tmpdir = tempfile.mkdtemp(dir='../') -- cgit v1.2.3