Bug 666065

Summary: Old package won't remove when new version installed
Product: [Fedora] Fedora Reporter: stan <gryt2>
Component: lilypondAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 14CC: gryt2, gwync, plroskin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: lilypond-2.13.39-3.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-10 21:28:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description stan 2010-12-28 18:37:30 UTC
Description of problem:  When the new version of lilypond was installed, the old version had an error and didn't remove itself.  yum flags this as an error.


Version-Release number of selected component (if applicable):
lilypond-2.13.39-1.fc14.x86_64


How reproducible:
Seems to be every time.


Steps to Reproduce:
1.  Have the -1 version of lilypond installed
2.  Install the -2 version of lilypond
3.
  
Actual results:
Fails to remove old version


Expected results:
Removes old version

Additional info:

This is the sequence of events when trying to correct with 
package-cleanup --cleandupes  and removing manually with rpm.  I can probably get it to remove properly with rpm if I force it or have it ignore preun scripts, but I thought it should be noted.

Transaction Test Succeeded
Running Transaction
Error in PREUN scriptlet in rpm package lilypond
lilypond-2.13.39-1.fc14.x86_64 was supposed to be removed but is not!

Removed:
  lilypond.x86_64 0:2.13.39-1.fc14

  Complete!
~  11:24 AM  root  tty4
# rpm -ev lilypond-2.13.39-1.fc14.x86_64
/var/tmp/rpm-tmp.NH8nUV: line 4: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.NH8nUV: line 4: `fi'
error: %preun(lilypond-2.13.39-1.fc14.x86_64) scriptlet failed, exit status 2

Comment 1 Fedora Update System 2010-12-29 16:53:58 UTC
lilypond-2.13.39-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/lilypond-2.13.39-3.fc14

Comment 2 Fedora Update System 2010-12-29 21:54:00 UTC
lilypond-2.13.39-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update lilypond'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/lilypond-2.13.39-3.fc14

Comment 3 stan 2010-12-30 00:12:16 UTC
I installed the update, it installed fine.  And both the 1 and 2 version were not removed.  I think this is OK as 3 won't be removed until the next version comes out, and it is the one you fixed.  I was able to remove them with
rpm -ev --noscripts  using their versions.

Thanks for the fast turnaround.

Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating       : lilypond-fonts-common-2.13.39-3.fc14.x86_64 1/9
Updating       : lilypond-century-schoolbook-l-fonts-2.13.39-3.fc14.x86_64 2/9
Updating       : lilypond-emmentaler-fonts-2.13.39-3.fc14.x86_64 3/9
Updating       : lilypond-2.13.39-3.fc14.x86_64 4/9
Error in PREUN scriptlet in rpm package lilypond
Error in PREUN scriptlet in rpm package lilypond
Cleanup        : lilypond-century-schoolbook-l-fonts-2.13.39-2.fc14.x86_64 5/9
/var/tmp/rpm-tmp.070lR7: line 4: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.070lR7: line 4: `fi'
error: %preun(lilypond-2.13.39-2.fc14.x86_64) scriptlet failed, exit status 2
/var/tmp/rpm-tmp.IJiDWN: line 4: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.IJiDWN: line 4: `fi'
error: %preun(lilypond-2.13.39-1.fc14.x86_64) scriptlet failed, exit status 2
Cleanup        : lilypond-emmentaler-fonts-2.13.39-2.fc14.x86_64 6/9
Cleanup        : lilypond-fonts-common-2.13.39-2.fc14.x86_64 7/9
lilypond-2.13.39-1.fc14.x86_64 was supposed to be removed but is not!
lilypond-2.13.39-2.fc14.x86_64 was supposed to be removed but is not!


Updated:
lilypond.x86_64 0:2.13.39-3.fc14

Dependency Updated:
lilypond-century-schoolbook-l-fonts.x86_64 0:2.13.39-3.fc14         lilypond-emmentaler-fonts.x86_64 0:2.13.39-3.fc14
lilypond-fonts-common.x86_64 0:2.13.39-3.fc14

Complete!

Comment 4 Pavel Roskin 2010-12-30 21:25:28 UTC
lilypond-2.13.39-3.fc14 installs and uninstalls properly.

Comment 5 Fedora Update System 2011-01-10 21:28:23 UTC
lilypond-2.13.39-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.