Bug 1284290

Summary: rpm file triggers syntax does not accept --priority
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jzeleny, lkardos, novyjindrich, packaging-team-maint, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-25 09:48:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zbigniew Jędrzejewski-Szmek 2015-11-22 22:54:36 UTC
Description of problem:
http://www.rpm.org/wiki/FileTriggers says "FILE_TRIGGER_OPTIONS are the same as options for other rpm scriptlets except for option -P/--priority". "-P XXX" works, but neither --priority=XXX nor --priority XXX do. Using -P is a good enough solution, but anyone trying this is likely to waste time trying to figure out the syntax.

error: line 153: Dependency tokens must begin with alpha-numeric, '_' or '/'

Version-Release number of selected component (if applicable):
rpm-4.13.0-0.rc1.6.fc23.x86_64

Comment 1 Ľuboš Kardoš 2015-11-25 09:48:12 UTC
The long option --priority doens't work because of the way how the parser parses trigger definitions, everything after "--" is considered to be a trigger target. I removed mention of option "--priority" from http://www.rpm.org/wiki/FileTriggers in order not to confuse anybody.