Bug 97363 - RFE :%triggers should be fired for virtual packages
RFE :%triggers should be fired for virtual packages
Status: CLOSED UPSTREAM
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-06-13 13:26 EDT by Enrico Scholz
Modified: 2007-04-18 12:54 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-27 03:22:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
spec-file (289 bytes, text/plain)
2003-06-13 13:27 EDT, Enrico Scholz
no flags Details

  None (edit)
Description Enrico Scholz 2003-06-13 13:26:42 EDT
Description of problem:

Triggers like 

| %triggerin ... -- vpkg

where 'vpkg' is the name of a virtual package (e.g. webserver), will not be
executed.


Version-Release number of selected component (if applicable):

rpm-4.2.1-0.11


How reproducible:
100%

Steps to Reproduce:
1. build rpms from attachement
   | rpmbuild -bb test1.spec
2. install packages
   | rpm -U test1-1-1.noarch.rpm test1-A-1-1.noarch.rpm
3. cat /root/test-trigger


Actual results:

cat: /root/test-trigger: No such file or directory


Expected results:

'Trigger fired for test1-data'
Comment 1 Enrico Scholz 2003-06-13 13:27:24 EDT
Created attachment 92391 [details]
spec-file
Comment 2 Jeff Johnson 2003-12-26 23:51:07 EST
Hmmm, this is actually an RFE, as triggers are traditionally
fired by package name, not provide name.

I've achieved triggers fired by providename, but more than a little
testing needs to happen before I commit.
Comment 3 Jeff Johnson 2006-01-27 03:22:10 EST
Fixed for quite some time. This is rpm-4.4.5 behavior:

[jbj@wellfleet test1]$ sudo rpm -Uvh *h.rpm
Preparing...                ########################################### [100%]
   1:test1-A                ########################################### [ 50%]
   2:test1                  ########################################### [100%]
Trigger fired for test1-A

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