mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Better error-reporting when spec file has errors
Fix commit 81daa0625b
Require rpmlint and suggest rpmlint -i when rpmbuild bails
This commit is contained in:
parent
48b1dbe927
commit
9e57fc3773
2 changed files with 5 additions and 4 deletions
|
@ -200,9 +200,9 @@ def get_project_name(tag=None):
|
|||
"rpm -q --qf '%%{name}\n' --specfile %s 2> /dev/null | head -1" %
|
||||
spec_file_path)
|
||||
if not output:
|
||||
error_out("Unable to determine project name from spec file: %s, try rpm -q --specfile %s" %
|
||||
spec_file_path, spec_file_path)
|
||||
error_out("Try rpm -qf --specfile %s for more details." % spec_file_path)
|
||||
error_out(["Unable to determine project name from spec file: %s" % spec_file_path,
|
||||
"Try rpm -q --specfile %s" % spec_file_path,
|
||||
"Try rpmlint -i %s" % spec_file_path])
|
||||
return output
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Name: tito
|
||||
Version: 0.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 1%{?dist}
|
||||
Summary: A tool for managing rpm based git projects
|
||||
|
||||
Group: Development/Tools
|
||||
|
@ -18,6 +18,7 @@ BuildRequires: asciidoc
|
|||
|
||||
Requires: python-setuptools
|
||||
Requires: rpm-build
|
||||
Requires: rpmlint
|
||||
|
||||
%description
|
||||
Tito is a tool for managing tarballs, rpms, and builds for projects using
|
||||
|
|
Loading…
Add table
Reference in a new issue