aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-02-07 23:21:00 +0100
committerGuido Günther <agx@sigxcpu.org>2012-02-07 23:24:02 +0100
commit5858ee8e8d8ae9bd30ddd590b06cd3c85ac811a1 (patch)
tree7a0b101dc7e07f2fea9c0d78e1c79a1f6a6c544c
parente0ae084d90d86b8965f34f9f2e29b1409eb6f52a (diff)
import_orig: clarify function description
-rw-r--r--gbp/scripts/import_orig.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index 0fbd7cd..eb202e3 100644
--- a/gbp/scripts/import_orig.py
+++ b/gbp/scripts/import_orig.py
@@ -88,9 +88,11 @@ def is_link_target(target, link):
def symlink_orig(archive, pkg, version):
"""
- create a symlink <pkg>_<version>.orig.tar.<ext> so pristine-tar will see the
- correct basename
+ Create a symlink from I{archive} ti I{<pkg>_<version>.orig.tar.<ext>} so
+ pristine-tar will see the correct basename.
+
@return: archive path to be used by pristine tar
+ @rtype: C{str}
"""
if os.path.isdir(archive):
return None
@@ -225,7 +227,7 @@ def find_source(options, args):
def repacked_tarball_name(source, name, version):
if source.is_orig():
- # Repacked orig tarballs get need a different name since there's already
+ # Repacked orig tarball needs a different name since there's already
# one with that name
name = os.path.join(
os.path.dirname(source.path),