summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-02-09 17:32:13 -0700
committerJesse Keating <jkeating@redhat.com>2011-02-09 17:32:13 -0700
commit7ff39749238c2657659da863e97056373f06ebd8 (patch)
treee69ad78284d765187d7b5dae2640c294e834f31c /src
parent9136869be328f9a6d2d5e34cde652b617db31e7a (diff)
downloadfedora-packager-master.zip
fedora-packager-master.tar.gz
fedora-packager-master.tar.xz
Catch errors parsing spec to get name. (#676383)HEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/pyfedpkg/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 6f2f6d6..3bb414d 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -108,6 +108,8 @@ def _name_from_spec(spec):
output, error = proc.communicate()
except OSError, e:
raise FedpkgError(e)
+ if error:
+ raise FedpkgError(error)
return output.split()[0]
def _run_command(cmd, shell=False, env=None, pipe=[], cwd=None):