summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2005-08-19 20:06:47 +0000
committerPaul Nasrat <pnasrat@redhat.com>2005-08-19 20:06:47 +0000
commitfa32f1dbe717b9f737ed84ad47531a38085837d7 (patch)
treeffa8bcc2f6c95851336ffdf790524a01c578a24f
parent8befff4dbed16fd3815674daca34a123f40e923d (diff)
downloadanaconda-fa32f1dbe717b9f737ed84ad47531a38085837d7.tar.gz
anaconda-fa32f1dbe717b9f737ed84ad47531a38085837d7.tar.xz
anaconda-fa32f1dbe717b9f737ed84ad47531a38085837d7.zip
remove sortPackages
-rw-r--r--packages.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/packages.py b/packages.py
index ecb71c311..678bfb98e 100644
--- a/packages.py
+++ b/packages.py
@@ -226,39 +226,6 @@ def setSaneXSettings(xsetup):
xsetup.xhwstate.choose_sane_default()
xsetup.imposed_sane_default = 1
-def sortPackages(first, second):
- # install packages in cd order (cd tag is 1000002)
- one = None
- two = None
-
- if first[1000003] != None:
- one = first[1000003]
-
- if second[1000003] != None:
- two = second[1000003]
-
- if one == None or two == None:
- one = 0
- two = 0
- if first[1000002] != None:
- one = first[1000002]
-
- if second[1000002] != None:
- two = second[1000002]
-
- if one < two:
- return -1
- elif one > two:
- return 1
- elif (string.lower(first[rpm.RPMTAG_NAME])
- < string.lower(second[rpm.RPMTAG_NAME])):
- return -1
- elif (string.lower(first[rpm.RPMTAG_NAME])
- > string.lower(second[rpm.RPMTAG_NAME])):
- return 1
-
- return 0
-
class rpmErrorClass:
def cb(self):