Ticket #26 (closed enhancement: duplicate)
percent-in could be improved and is buggy
| Reported by: | pterjan@… | Owned by: | misc@… |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | rpmlint | Version: | trunk |
| Keywords: | patch | Cc: |
Description (last modified by scop) (diff)
According to the code, the warning occurs when % appears in the scriptlet and %% does not. I th So, ink this is intended to trigger only unreplaced macros if they were intended.
So, the wanted behaviour would be :
- %foo in the spec, %foo in the script -> warning
- %%foo in the spec, %foo in the script -> OK
But the %% is looked for in the script so it will never appear and this part of the test is useless. Anyway it would not be optimal as %foo %%bar would not trigger the warning as the tests are separate.
Current behaviour is :
- %foo in the spec, %foo in the script -> warning
- %%foo in the spec, %foo in the script -> warning
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

