]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-byKey.patch
- added %ifarch for PPC port of PLD :)
[packages/rpm.git] / rpm-byKey.patch
CommitLineData
9c1041ff 1--- ./lib/rpmlib.h.org Sun Jun 17 13:38:45 2001
2+++ ./lib/rpmlib.h Sun Jun 17 13:37:38 2001
3@@ -764,6 +764,7 @@
4 const char * byName;
5 const char * byVersion;
6 const char * byRelease;
7+ const void * byKey;
8 Header byHeader;
9 /* these needs fields are misnamed -- they are used for the package
10 which isn't needed as well */
11--- ./lib/depends.c.org Sun Jun 17 13:38:59 2001
12+++ ./lib/depends.c Sun Jun 17 13:36:56 2001
13@@ -1250,7 +1250,7 @@
14 }
15
16 static int checkPackageDeps(rpmTransactionSet ts, struct problemsSet * psp,
17- Header h, const char * keyName, uint_32 multiLib)
18+ Header h, const char * keyName, uint_32 multiLib, void *key)
19 {
20 const char * name, * version, * release;
21 const char ** requires;
22@@ -1311,6 +1311,7 @@
23 psp->problems[psp->num].byName = xstrdup(name);
24 psp->problems[psp->num].byVersion = xstrdup(version);
25 psp->problems[psp->num].byRelease = xstrdup(release);
26+ psp->problems[psp->num].byKey = key;
27 psp->problems[psp->num].needsName = xstrdup(requires[i]);
28 psp->problems[psp->num].needsVersion = xstrdup(requiresEVR[i]);
29 psp->problems[psp->num].needsFlags = requireFlags[i];
30@@ -1431,7 +1432,7 @@
31
32 rpmdbPruneIterator(mi, ts->removedPackages, ts->numRemovedPackages, 1);
33 while ((h = rpmdbNextIterator(mi)) != NULL) {
34- if (checkPackageDeps(ts, psp, h, key, 0)) {
35+ if (checkPackageDeps(ts, psp, h, key, 0,NULL)) {
36 rc = 1;
37 break;
38 }
39@@ -1995,7 +1996,7 @@
40 for (i = 0, p = ts->addedPackages.list; i < npkgs; i++, p++)
41 {
42
43- rc = checkPackageDeps(ts, &ps, p->h, NULL, p->multiLib);
44+ rc = checkPackageDeps(ts, &ps, p->h, NULL, p->multiLib,p->key);
45 if (rc)
46 goto exit;
47
This page took 0.031906 seconds and 4 git commands to generate.