Bug 478842
Summary: | yum groupremove - removal sequence is random | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Hutař <jhutar> | ||||
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 10 | CC: | ffesti, guolin, james.antill, jnovy, katzj, pmatilai, tim.lauridsen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-06-18 17:16:30 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: | |||||||
Attachments: |
|
Description
Jan Hutař
2009-01-05 15:28:25 UTC
Created attachment 328204 [details]
packaged repo I have used for testing
$ rpm -qpl repo/test-PP-0.1-1.x86_64.rpm
/usr/share/test
/usr/share/test/test-PP.txt
$ rpm -qp --requires repo/test-P{A,B,C}*.x86_64.rpm | grep test-PP
test-PP
test-PP
test-PP
$ rpm -qp --scripts repo/test-P{A,B,C}*.x86_64.rpm
preinstall program: /bin/sh
postinstall program: /bin/sh
preuninstall scriptlet (using /bin/sh):
cat /usr/share/test/test-PP.txt
postuninstall scriptlet (using /bin/sh):
cat /usr/share/test/test-PP.txt
preinstall program: /bin/sh
postinstall program: /bin/sh
preuninstall scriptlet (using /bin/sh):
cat /usr/share/test/test-PP.txt
postuninstall scriptlet (using /bin/sh):
cat /usr/share/test/test-PP.txt
preinstall program: /bin/sh
postinstall program: /bin/sh
preuninstall scriptlet (using /bin/sh):
cat /usr/share/test/test-PP.txt
postuninstall scriptlet (using /bin/sh):
cat /usr/share/test/test-PP.txt
Ordering of the transaction isn't done by yum. It's done by ts.order() internal to rpm/rpm-python. Are you sure this is specific to groupremove? Heh, just tried and it is not - it fails with yum remove as well: # rpm -q test-PA test-PB test-PC test-PPtest-PA-0.1-1.x86_64 test-PB-0.1-1.x86_64 test-PC-0.1-1.x86_64 test-PP-0.1-1.x86_64 # yum -y remove test-PA test-PP test-PB test-PC ... Running Transaction This is a test Erasing : test-PA 1/4 This is a test Erasing : test-PP 2/4 cat: /usr/share/test/test-PP.txt: No such file or directory cat: /usr/share/test/test-PP.txt: No such file or directory =============================== Leaving rpm code =============================== Removed: test-PA.x86_64 0:0.1-1 test-PB.x86_64 0:0.1-1 test-PC.x86_64 0:0.1-1 test-PP.x86_64 0:0.1-1 Complete! # rpm -q test-PA test-PB test-PC test-PP package test-PA is not installed test-PB-0.1-1.x86_64 test-PC-0.1-1.x86_64 package test-PP is not installed And when I try with parameters order which should work: # yum -y remove test-PA test-PB test-PC test-PP ... Running Transaction This is a test Erasing : test-PA 1/4 This is a test Erasing : test-PP 2/4 cat: /usr/share/test/test-PP.txt: No such file or directory cat: /usr/share/test/test-PP.txt: No such file or directory =============================== Leaving rpm code =============================== Removed: test-PA.x86_64 0:0.1-1 test-PB.x86_64 0:0.1-1 test-PC.x86_64 0:0.1-1 test-PP.x86_64 0:0.1-1 Complete! Unlikely to get fixed in rpm 4.6.x so marking as a dupe... *** This bug has been marked as a duplicate of bug 479257 *** |