|
Panu Matilainen |
540876 |
changeset: 6194:fe6fc6dc7b98
|
|
Panu Matilainen |
540876 |
tag: tip
|
|
Panu Matilainen |
540876 |
user: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
540876 |
date: Wed Oct 24 10:31:42 2007 +0300
|
|
Panu Matilainen |
540876 |
summary: Use NEVRA, not NEVR everywhere for rpmProblems
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
diff -r cc2abc150d64 -r fe6fc6dc7b98 lib/rpmfi.c
|
|
Panu Matilainen |
540876 |
--- a/lib/rpmfi.c Wed Oct 24 09:50:13 2007 +0300
|
|
Panu Matilainen |
540876 |
+++ b/lib/rpmfi.c Wed Oct 24 10:31:42 2007 +0300
|
|
Panu Matilainen |
540876 |
@@ -815,7 +815,7 @@ assert(p != NULL);
|
|
Panu Matilainen |
540876 |
if (j == numValid && !allowBadRelocate && actions) {
|
|
Panu Matilainen |
540876 |
rpmps ps = rpmtsProblems(ts);
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_BADRELOCATE,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
relocations[i].oldPath, NULL, NULL, 0);
|
|
Panu Matilainen |
540876 |
ps = rpmpsFree(ps);
|
|
Panu Matilainen |
540876 |
}
|
|
Panu Matilainen |
540876 |
diff -r cc2abc150d64 -r fe6fc6dc7b98 lib/rpmts.c
|
|
Panu Matilainen |
540876 |
--- a/lib/rpmts.c Wed Oct 24 09:50:13 2007 +0300
|
|
Panu Matilainen |
540876 |
+++ b/lib/rpmts.c Wed Oct 24 10:31:42 2007 +0300
|
|
Panu Matilainen |
540876 |
@@ -1356,14 +1356,14 @@ void rpmtsCheckDSIProblems(const rpmts t
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
if (dsi->bavail >= 0 && adj_fs_blocks(dsi->bneeded) > dsi->bavail) {
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_DISKSPACE,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(te), rpmteKey(te),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(te), rpmteKey(te),
|
|
Panu Matilainen |
540876 |
ts->filesystems[i], NULL, NULL,
|
|
Panu Matilainen |
540876 |
(adj_fs_blocks(dsi->bneeded) - dsi->bavail) * dsi->bsize);
|
|
Panu Matilainen |
540876 |
}
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
if (dsi->iavail >= 0 && adj_fs_blocks(dsi->ineeded) > dsi->iavail) {
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_DISKNODES,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(te), rpmteKey(te),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(te), rpmteKey(te),
|
|
Panu Matilainen |
540876 |
ts->filesystems[i], NULL, NULL,
|
|
Panu Matilainen |
540876 |
(adj_fs_blocks(dsi->ineeded) - dsi->iavail));
|
|
Panu Matilainen |
540876 |
}
|
|
Panu Matilainen |
540876 |
diff -r cc2abc150d64 -r fe6fc6dc7b98 lib/transaction.c
|
|
Panu Matilainen |
540876 |
--- a/lib/transaction.c Wed Oct 24 09:50:13 2007 +0300
|
|
Panu Matilainen |
540876 |
+++ b/lib/transaction.c Wed Oct 24 10:31:42 2007 +0300
|
|
Panu Matilainen |
540876 |
@@ -138,7 +138,7 @@ static int handleInstInstalledFiles(cons
|
|
Panu Matilainen |
540876 |
mi = rpmtsInitIterator(ts, RPMDBI_PACKAGES,
|
|
Panu Matilainen |
540876 |
&shared->otherPkg, sizeof(shared->otherPkg));
|
|
Panu Matilainen |
540876 |
while ((h = rpmdbNextIterator(mi)) != NULL) {
|
|
Panu Matilainen |
540876 |
- altNEVR = hGetNEVR(h, NULL);
|
|
Panu Matilainen |
540876 |
+ altNEVR = hGetNEVRA(h, NULL);
|
|
Panu Matilainen |
540876 |
otherFi = rpmfiNew(ts, h, RPMTAG_BASENAMES, scareMem);
|
|
Panu Matilainen |
540876 |
break;
|
|
Panu Matilainen |
540876 |
}
|
|
Panu Matilainen |
540876 |
@@ -214,7 +214,7 @@ static int handleInstInstalledFiles(cons
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
if (rConflicts) {
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_FILE_CONFLICT,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
rpmfiDN(fi), rpmfiBN(fi),
|
|
Panu Matilainen |
540876 |
altNEVR,
|
|
Panu Matilainen |
540876 |
0);
|
|
Panu Matilainen |
540876 |
@@ -603,9 +603,9 @@ assert(otherFi != NULL);
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
if (rConflicts) {
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_NEW_FILE_CONFLICT,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
fn, NULL,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(otherFi->te),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(otherFi->te),
|
|
Panu Matilainen |
540876 |
0);
|
|
Panu Matilainen |
540876 |
}
|
|
Panu Matilainen |
540876 |
}
|
|
Panu Matilainen |
540876 |
@@ -703,9 +703,9 @@ static int ensureOlder(rpmts ts,
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
if (rc == 0) {
|
|
Panu Matilainen |
540876 |
rpmps ps = rpmtsProblems(ts);
|
|
Panu Matilainen |
540876 |
- const char * altNEVR = hGetNEVR(h, NULL);
|
|
Panu Matilainen |
540876 |
+ const char * altNEVR = hGetNEVRA(h, NULL);
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_OLDPACKAGE,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
NULL, NULL,
|
|
Panu Matilainen |
540876 |
altNEVR,
|
|
Panu Matilainen |
540876 |
0);
|
|
Panu Matilainen |
540876 |
@@ -1508,14 +1508,14 @@ rpmMessage(RPMMESS_DEBUG, _("sanity chec
|
|
Panu Matilainen |
540876 |
if (!(rpmtsFilterFlags(ts) & RPMPROB_FILTER_IGNOREARCH) && !tscolor)
|
|
Panu Matilainen |
540876 |
if (!archOkay(rpmteA(p)))
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_BADARCH,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
rpmteA(p), NULL,
|
|
Panu Matilainen |
540876 |
NULL, 0);
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
if (!(rpmtsFilterFlags(ts) & RPMPROB_FILTER_IGNOREOS))
|
|
Panu Matilainen |
540876 |
if (!osOkay(rpmteO(p)))
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_BADOS,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
rpmteO(p), NULL,
|
|
Panu Matilainen |
540876 |
NULL, 0);
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
@@ -1544,7 +1544,7 @@ rpmMessage(RPMMESS_DEBUG, _("sanity chec
|
|
Panu Matilainen |
540876 |
|
|
Panu Matilainen |
540876 |
while (rpmdbNextIterator(mi) != NULL) {
|
|
Panu Matilainen |
540876 |
rpmpsAppend(ps, RPMPROB_PKG_INSTALLED,
|
|
Panu Matilainen |
540876 |
- rpmteNEVR(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
+ rpmteNEVRA(p), rpmteKey(p),
|
|
Panu Matilainen |
540876 |
NULL, NULL,
|
|
Panu Matilainen |
540876 |
NULL, 0);
|
|
Panu Matilainen |
540876 |
/*@innerbreak@*/ break;
|
|
Panu Matilainen |
540876 |
|