summaryrefslogtreecommitdiff
path: root/lib/rpmte.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-26 13:36:36 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-26 13:36:36 +0200
commite9aae5200d14ff33b635526c6353deea8231f527 (patch)
tree508737f94ef3bc7618776f8f8d694cb9f2662fa1 /lib/rpmte.c
parent39ded460e62b38efa26ec665d48e661f7d425a80 (diff)
downloadrpm-e9aae5200d14ff33b635526c6353deea8231f527.tar.gz
rpm-e9aae5200d14ff33b635526c6353deea8231f527.tar.bz2
rpm-e9aae5200d14ff33b635526c6353deea8231f527.zip
Avoid unnecessary argument now that problem pkgNEVRA is always te NEVRA
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r--lib/rpmte.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 43d42acfb..2b230092f 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -718,11 +718,11 @@ void rpmteCleanProblems(rpmte te)
}
static void appendProblem(rpmte te, rpmProblemType type,
- const char * pkgNEVR, fnpyKey key, const char * altNEVR,
+ fnpyKey key, const char * altNEVR,
const char * str, uint64_t number)
{
rpmProblem o;
- rpmProblem p = rpmProblemCreate(type, pkgNEVR, key, altNEVR, str, number);
+ rpmProblem p = rpmProblemCreate(type, te->NEVRA, key, altNEVR, str, number);
rpmpsi psi = rpmpsInitIterator(te->probs);
/* Only add new, unique problems to the set */
@@ -744,8 +744,7 @@ void rpmteAddProblem(rpmte te, rpmProblemType type,
const char *altNEVR, const char *str, uint64_t number)
{
if (te != NULL) {
- appendProblem(te, type, rpmteNEVRA(te), rpmteKey(te),
- altNEVR, str, number);
+ appendProblem(te, type, rpmteKey(te), altNEVR, str, number);
}
}
@@ -764,7 +763,7 @@ void rpmteAddDepProblem(rpmte te, const char * altNEVR, rpmds ds,
case 'R': type = RPMPROB_REQUIRES; break;
}
- appendProblem(te, type, rpmteNEVRA(te), key, altNEVR, DNEVR+2, adding);
+ appendProblem(te, type, key, altNEVR, DNEVR+2, adding);
}
}