1 |
diff -uNr anaconda-11.1.2.36__orig/scripts/pkgorder anaconda-11.1.2.36/scripts/pkgorder |
diff -uNr anaconda-11.1.2.87__orig/scripts/pkgorder anaconda-11.1.2.87/scripts/pkgorder |
2 |
--- anaconda-11.1.2.36__orig/scripts/pkgorder 2007-01-26 20:08:39.000000000 +0000 |
--- anaconda-11.1.2.87__orig/scripts/pkgorder 2007-05-10 18:50:46.000000000 +0100 |
3 |
+++ anaconda-11.1.2.36/scripts/pkgorder 2007-03-30 11:44:22.000000000 +0000 |
+++ anaconda-11.1.2.87/scripts/pkgorder 2007-11-22 02:02:47.000000000 +0000 |
4 |
@@ -71,13 +71,11 @@ |
@@ -71,25 +71,18 @@ |
5 |
#XXX: sigh |
#XXX: sigh |
6 |
processed = {} |
processed = {} |
7 |
def processTransaction(ds): |
def processTransaction(ds): |
12 |
- ds.ts.order() |
- ds.ts.order() |
13 |
- for (hdr, path) in ds.ts.ts.getKeys(): |
- for (hdr, path) in ds.ts.ts.getKeys(): |
14 |
- fname = os.path.basename(path) |
- fname = os.path.basename(path) |
15 |
|
- fpattern = "%s*" % fname.rsplit('.', 2)[0] |
16 |
+# ds.tsInfo.makelists() |
+# ds.tsInfo.makelists() |
17 |
+# print len(ds.tsInfo.installed) |
+# print len(ds.tsInfo.installed) |
18 |
+# import pdb; pdb.set_trace() |
+# import pdb; pdb.set_trace() |
19 |
+ for pkgtup in ds.tsInfo.sort(): |
+ for pkgtup in ds.tsInfo.sort(): |
20 |
+ fname = ds.tsInfo.pkgdict[pkgtup][0].po.returnSimple('relativepath') |
+ fname = ds.tsInfo.pkgdict[pkgtup][0].po.returnSimple('relativepath') |
21 |
fpattern = "%s/%s*" % (toppath, fname.rsplit('.', 2)[0]) |
+ fpattern = "%s/%s*" % (toppath, fname.rsplit('.', 2)[0]) |
22 |
printMatchingPkgs(fpattern) |
printMatchingPkgs(fpattern) |
23 |
|
|
24 |
@@ -187,17 +185,16 @@ |
def printMatchingPkgs(fpattern): |
25 |
|
global processed |
26 |
|
|
27 |
|
- if os.path.isdir("%s/%s/RPMS" % (toppath, product)): |
28 |
|
- matches = glob.glob("%s/%s/RPMS/%s" % (toppath, product, fpattern)) |
29 |
|
- elif os.path.isdir("%s/%s" %(toppath, product)): |
30 |
|
- matches = glob.glob("%s/%s/%s" % (toppath, product, fpattern)) |
31 |
|
- else: |
32 |
|
- matches = glob.glob("%s/%s" % (toppath, fpattern)) |
33 |
|
+ matches = glob.glob(fpattern) |
34 |
|
|
35 |
|
for match in matches: |
36 |
|
mname = os.path.basename(match) |
37 |
|
@@ -153,7 +146,12 @@ |
38 |
|
arch = "i686" |
39 |
|
|
40 |
|
# print out kernel related packages first |
41 |
|
- printMatchingPkgs("kernel-*") |
42 |
|
+ if os.path.isdir("%s/%s/RPMS" % (toppath, product)): |
43 |
|
+ printMatchingPkgs("%s/%s/RPMS/%s" % (toppath, product, "kernel-*")) |
44 |
|
+ elif os.path.isdir("%s/%s" %(toppath, product)): |
45 |
|
+ printMatchingPkgs("%s/%s/%s" % (toppath, product, "kernel-*")) |
46 |
|
+ else: |
47 |
|
+ printMatchingPkgs("%s/%s" % (toppath, "kernel-*")) |
48 |
|
|
49 |
|
testpath = "/tmp/pkgorder-%d" %(os.getpid(),) |
50 |
|
os.system("mkdir -p %s/var/lib/rpm" %(testpath,)) |
51 |
|
@@ -164,7 +162,12 @@ |
52 |
|
addGroups(ds, ["core", "base", "text-internet"]) |
53 |
|
|
54 |
|
# hack, hack, hack... make sure iscsi ends up on disc1 (#208832) |
55 |
|
- printMatchingPkgs("iscsi-*") |
56 |
|
+ if os.path.isdir("%s/%s/RPMS" % (toppath, product)): |
57 |
|
+ printMatchingPkgs("%s/%s/RPMS/%s" % (toppath, product, "iscsi-*")) |
58 |
|
+ elif os.path.isdir("%s/%s" %(toppath, product)): |
59 |
|
+ printMatchingPkgs("%s/%s/%s" % (toppath, product, "iscsi-*")) |
60 |
|
+ else: |
61 |
|
+ printMatchingPkgs("%s/%s" % (toppath, "iscsi-*")) |
62 |
|
|
63 |
|
addGroups(ds, ["base-x", "dial-up", |
64 |
|
"graphical-internet", "editors", |
65 |
|
@@ -182,17 +185,16 @@ |
66 |
"gnome-software-development", "eclipse", |
"gnome-software-development", "eclipse", |
67 |
"x-software-development", |
"x-software-development", |
68 |
"java-development", "kde-software-development", |
"java-development", "kde-software-development", |