summaryrefslogtreecommitdiff
path: root/build/spec.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-04-13 09:07:08 +0000
committerjbj <devnull@localhost>2000-04-13 09:07:08 +0000
commit48e8650520c78c81f67164da89f1bb6143022ad8 (patch)
treee0ca58a922f7913dc0a27eb49caa12e6707f67b6 /build/spec.c
parentbb472e02e1bde04b02702cf72473f9a5dbcb983d (diff)
downloadlibrpm-tizen-48e8650520c78c81f67164da89f1bb6143022ad8.tar.gz
librpm-tizen-48e8650520c78c81f67164da89f1bb6143022ad8.tar.bz2
librpm-tizen-48e8650520c78c81f67164da89f1bb6143022ad8.zip
The death of rpmdbFindBy{Group,TriggeredBy,Header}.
CVS patchset: 3673 CVS date: 2000/04/13 09:07:08
Diffstat (limited to 'build/spec.c')
-rw-r--r--build/spec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/spec.c b/build/spec.c
index feb0b4ed7..11598be4f 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -70,8 +70,7 @@ int lookupPackage(Spec spec, const char *name, int flag, /*@out@*/Package *pkg)
/* Construct package name */
{ char *n;
if (flag == PART_SUBNAME) {
- headerGetEntry(spec->packages->header, RPMTAG_NAME,
- NULL, (void **) &pname, NULL);
+ headerNVR(spec->packages->header, &pname, NULL, NULL);
fullName = n = alloca(strlen(pname) + 1 + strlen(name) + 1);
while (*pname) *n++ = *pname++;
*n++ = '-';
@@ -83,7 +82,7 @@ int lookupPackage(Spec spec, const char *name, int flag, /*@out@*/Package *pkg)
/* Locate package with fullName */
for (p = spec->packages; p != NULL; p = p->next) {
- headerGetEntry(p->header, RPMTAG_NAME, NULL, (void **) &pname, NULL);
+ headerNVR(p->header, &pname, NULL, NULL);
if (pname && (! strcmp(fullName, pname))) {
break;
}