Bug 1112410 - fedora-review thinks %%clean == %clean
Summary: fedora-review thinks %%clean == %clean
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-review
Version: 20
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Stanislav Ochotnicky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-23 21:41 UTC by Jerry James
Modified: 2015-04-17 10:32 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-17 10:32:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2014-06-23 21:41:14 UTC
Description of problem:
A package under review that includes a mention of a (now gone) %clean section in the changelog had this warning generated:

Generic:
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
     Note: %clean present but not required

The actual changelog entry mentions %%clean, but fedora-review seems to ignore the double % sign, as well as the fact that the string in question appears in the %changelog section.

Version-Release number of selected component (if applicable):
fedora-review-0.5.1-2.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1. Run fedora-review on the package in bug 1102950
2.
3.

Actual results:
fedora-review complains about a nonexistent %clean section

Expected results:
No such complaint, since there is no %clean section

Additional info:

Comment 1 Alec Leamas 2015-04-17 10:32:05 UTC
Dirty fix in https://fedorahosted.org/FedoraReview/changeset/db1a23b70d5f7

We don't really parse the spec, this is just regexes. Overall, this means a lot of corner cases like this one while still being "good enough".


Note You need to log in before you can comment on or make changes to this bug.