Mailinglist Archive: opensuse-buildservice (126 mails)

< Previous Next >
Re: [opensuse-buildservice] osc, disable spec file auto format
# stefan.bruens@xxxxxxxxxxxxxx / 2015-02-19 01:13:30 +0100:
On Wednesday 18 February 2015 15:55:32 Brian K. White wrote:
Whatever high level result you wanted to get from this behavior, this is
the wrong place to insert it.

The OBS could reject files which are not compliant. Something along:

---
The file "foo.spec" has been rejected as it is not compliant to formatting
rules, see https://en.opensuse.org/openSUSE:Specfile_guidelines for
details.

Please fix these issues, either manually or by executing "osc service run
format_spec_file".

The following issues were found by format_spec_file (Version 0.1234)
Line 14: Bad ordering for "Requires:", please sort alphabetically
Line 18: Unknown or bad "License:"
Line 43: ...
...
---

that is definitely the way to go about it. OTOH, people need tools to
automate the compliance-related changes. spec-cleaner still makes
sense, but the server-generated error message needs to identify clearly
the rules it is currently enforcing, perhaps with a (working!) http(s)
url pointing to a release tarball.

--
roman
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >