Bug 170721 - RPMs installed in alphabetical order when pkgorder not set
Summary: RPMs installed in alphabetical order when pkgorder not set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: anaconda
Version: 3.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks: 168424
TreeView+ depends on / blocked
 
Reported: 2005-10-14 01:01 UTC by Patrick Devine
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version: RHEA-2006-0150
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-15 15:34:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2006:0150 0 qe-ready SHIPPED_LIVE anaconda enhancement and bug fix update 2006-03-14 05:00:00 UTC

Description Patrick Devine 2005-10-14 01:01:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924

Description of problem:


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


How reproducible:
Always

Steps to Reproduce:
1. build an iso w/o defining package order w/ genhdlist
2. reboot and try installing


Actual Results:  anaconda installs RPMs in alphabetical order instead of running ts.order() on the transaction set.

Additional info:

This diff fixes the problem:

--- hdrlist.py  2005-10-13 18:01:46.000000000 -0700
+++ anaconda-9.1.6.8/hdrlist.py 2004-07-27 16:51:37.000000000 -0700
@@ -345,7 +345,7 @@ class HeaderList:
     def preordered(self):
         preordered = 1
         for h in self.pkgs.values():
-            if h.isSelected() and not h[1000003]:
+            if h.isSelected() and h[1000003] == None:
                 preordered = 0
         return preordered

Comment 1 Patrick Devine 2005-10-14 18:10:05 UTC
I just realized I ran the diff backward.  You want the line to be "and not
h[1000003]:" instead of "and h[1000003] == None".

*sigh*


Comment 6 Red Hat Bugzilla 2006-03-15 15:34:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2006-0150.html


Comment 7 Lance Davis 2006-04-04 20:40:03 UTC
This bugfix seems to have introduced a serious bug into CentOS 3.7 build - we
had cd swapping at least 10 times to install. I removed this bugfix and it is
working fine.

Comment 8 Lance Davis 2006-04-04 21:01:27 UTC
And anyway - surely not defining the package order w/genhdlist is the bug - not
what anaconda then does with it !!


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