summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-09-20 13:36:34 -0700
committerJesse Keating <jkeating@redhat.com>2010-09-20 13:36:34 -0700
commit7783646df117dab495ca6b5831a762cbebda73eb (patch)
tree2f8e4084e98446a3b5615e3e7a9eb147c75e524c
parentd95a4d0146cd236d3fe51291ee1c68a7b027994c (diff)
downloadfedora-packager-7783646df117dab495ca6b5831a762cbebda73eb.zip
fedora-packager-7783646df117dab495ca6b5831a762cbebda73eb.tar.gz
fedora-packager-7783646df117dab495ca6b5831a762cbebda73eb.tar.xz
Fix up some contributed docstrings
-rw-r--r--src/pyfedpkg/__init__.py22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index e10bb97..6b9b6a1 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -312,7 +312,17 @@ def _srpmdetails(srpm):
return((name, files, uploadfiles))
def add_tag(tagname, force=False, message=None, file=None):
- """Add a git tag to the repository"""
+ """Add a git tag to the repository
+
+ Takes a tagname
+
+ Optionally can force the tag, include a message,
+ or reference a message file.
+
+ Runs the tag command and returns nothing
+
+ """
+
cmd = ['git', 'tag']
cmd.extend(['-a'])
# force tag creation, if tag already exists
@@ -497,8 +507,7 @@ def commit(path=None, message=None, file=None, files=[]):
return
def delete_tag(tagname=None):
- """Delete a git tag from the repository
- """
+ """Delete a git tag from the repository"""
if not tagname:
raise fedpkgError('Please specified a tagname')
@@ -640,9 +649,12 @@ def import_srpm(srpm, path=None):
return(uploadfiles)
def list_tag(tagname=None):
- """Create a list of all tags in the repository which mathe a given pattern.
- if list == '*' all tags will been shown.
+ """Create a list of all tags in the repository which match a given tagname.
+
+ if tagname == '*' all tags will been shown.
+
"""
+
cmd = ['git', 'tag']
cmd.extend(['-l'])
if not tagname == '*':