summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJochen Schmitt <Jochen@herr-schmitt.de>2010-09-26 20:28:19 +0200
committerJesse Keating <jkeating@redhat.com>2010-11-30 15:48:23 -0800
commit67f9f405d24d02dcda67344b2275c6b317a85c44 (patch)
tree568c1d08c9949b0dbcd5dfba71ce76ae0fd4cbe5 /src
parentcc5dcb9bd63d5c2787ff472bf2bdb086a9418606 (diff)
downloadfedora-packager-67f9f405d24d02dcda67344b2275c6b317a85c44.tar.gz
fedora-packager-67f9f405d24d02dcda67344b2275c6b317a85c44.tar.xz
fedora-packager-67f9f405d24d02dcda67344b2275c6b317a85c44.zip
Remove parenthesises on mymodule.nvr
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fedpkg.py2
-rw-r--r--src/pyfedpkg/__init__.py4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 1ad450f..2d7fff2 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -459,7 +459,7 @@ def commit(args):
try:
if not mymodule:
mymodule = pyfedpkg.PackageModule(args.path)
- tagname = mymodule.nvr()
+ tagname = mymodule.nvr
pyfedpkg.add_tag(tagname, True, args.message, args.file)
except pyfedpkg.FedpkgError, e:
log.error('Coult not create a tag: %s' % e)
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index d2783d6..48a4024 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -1284,10 +1284,6 @@ class PackageModule:
# Get just the output, then split it by space, grab the first
return output[0].split()[0]
- def getnvr(self):
- """Return Name-Version-Release of a package"""
- return self.nvr
-
def getrel(self):
"""Return the version-release of a package module."""