Enhancement #2546

Free package names for nethserver_events yum plugin

Added by Davide Principi over 7 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:12/23/2013
Priority:NormalDue date:12/23/2013
Assignee:-% Done:

100%

Category:nethserver-yum
Target version:v6.5-beta3
Resolution: NEEDINFO:No

Description

Remove the nethserver-* package name prefix requirement for packages exposing *-update events.


Related issues

Related to NethServer 6 - Enhancement #2535: Thunderbird 24 support CLOSED 12/20/2013 12/20/2013

Associated revisions

Revision 48e08409
Added by Davide Principi over 7 years ago

Signal *-update event for any package exposing it. Refs #2546

The "*-update" event is signalled if defined. The "nethserver-*"
package name prefix is no longer needed.

If a package containing an "*-update" event is uninstalled, ALL other
"*-update" events are fired. This is equivalent to a "system-adjust".

Revision c6c731e5
Added by Davide Principi over 7 years ago

Fixed erase case to trigger update events of remaining packages. Refs #2546

The RPM DB does not contain any info about erased packages because we
are in post-transaction hook. Indeed we must read the headers from
the YUM transaction object.

History

#1 Updated by Davide Principi over 7 years ago

  • Subject changed from Free package names to Free package names for nethserver_events yum plugin
  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#2 Updated by Davide Principi over 7 years ago

  • Due date set to 12/23/2013
  • Start date set to 12/23/2013
  • Estimated time set to 2.00

#3 Updated by Davide Principi over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

After upgrading to the modified version,

  1. Test install:
        # yum install sogo-frontends-1.1.1-3    
    
    Check if sogo-frontends-update event has been signalled in /var/log/messages
  2. Test uninstall:
        # yum remove sogo-frontends
    
    Check if all other *-update events has been fired in /var/log/messages

#4 Updated by Davide Principi over 7 years ago

  • Target version set to v6.5-beta3

#5 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
sogo-frontends-1.1.1-4.0gite8cacd05.ns6.noarch.rpm
nethserver-sogo-1.2.2-2.0gitb252091c.ns6.noarch.rpm
nethserver-yum-1.2.0-1.0git48e08409.ns6.noarch.rpm
nethserver-yum-1.2.0-2.0gitc6c731e5.ns6.noarch.rpm

#6 Updated by Alessio Fattorini over 7 years ago

  • Assignee set to Alessio Fattorini

#7 Updated by Davide Principi over 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Alessio Fattorini)
  • % Done changed from 70 to 20

FAILED

The update events are not triggered when a package is removed.

#8 Updated by Davide Principi over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#9 Updated by Davide Principi over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Fixed erase case

#10 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-yum-1.2.0-2.0gitc6c731e5.ns6.noarch.rpm

#11 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#12 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

After package installation:

Feb  3 16:38:33 test yum[27117]: Installed: sogo-frontends-1.1.1-5.0gite1b66888.ns6.noarch
Feb  3 16:38:37 test esmith::event[27121]: Processing event: sogo-frontends-update 

After uninstall, all update events are fired:

...
Feb  3 16:30:37 test esmith::event[26637]: Processing event: nethserver-mail-server-update 
...

The same behavior apply to all nethserver-* packages.

Marking as VERIFIED.

#13 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Released in nethserver/6.5/base repository.

Also available in: Atom PDF