summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYigang Wen <yigangx.wen@intel.com>2013-03-29 15:29:25 +0800
committerZhang Qiang <qiang.z.zhang@intel.com>2013-04-01 16:51:37 +0800
commit1e9a35c141d4a932b27dd7f79facc308be9c9513 (patch)
tree7ccb5124c5a664a4911d88cc84b80b27ef9d0516
parent285513a5c76c59161d8b7513564bb0e9e202eb6a (diff)
downloadgit-buildpackage-1e9a35c141d4a932b27dd7f79facc308be9c9513.tar.gz
git-buildpackage-1e9a35c141d4a932b27dd7f79facc308be9c9513.tar.bz2
git-buildpackage-1e9a35c141d4a932b27dd7f79facc308be9c9513.zip
fix no return value issue if no %setup, #859
If no %setup section, return default value in guess_orig_prefix()
-rw-r--r--gbp/rpm/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/rpm/__init__.py b/gbp/rpm/__init__.py
index 8af106d0..7e18ef3e 100644
--- a/gbp/rpm/__init__.py
+++ b/gbp/rpm/__init__.py
@@ -699,7 +699,9 @@ class SpecFile(object):
else:
# RPM default
prefix = "%s-%s/" % (self.name, self.upstreamversion)
- return prefix
+ break
+
+ return prefix
def _guess_orig_file(self):
"""