From 06a29f2dd5ea70a3bb30f379a29725518daad96c Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 19 Jan 1999 03:02:45 +0000 Subject: [PATCH] handle RPMTAG_ORIGFILENAMES properly CVS patchset: 2715 CVS date: 1999/01/19 03:02:45 --- lib/install.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/install.c b/lib/install.c index b33855c..2ab0a05 100644 --- a/lib/install.c +++ b/lib/install.c @@ -119,14 +119,15 @@ static int assembleFileList(Header h, struct fileMemory * mem, char * chptr; char ** languages, ** lang; - if (!headerGetEntry(h, RPMTAG_ORIGFILENAMES, NULL, (void **) &mem->names, + if (!headerGetEntry(h, RPMTAG_FILENAMES, NULL, (void **) &mem->names, fileCountPtr)) - headerGetEntry(h, RPMTAG_FILENAMES, NULL, (void **) &mem->names, - fileCountPtr); + return 0; + if (!headerGetEntry(h, RPMTAG_ORIGFILENAMES, NULL, (void **) &mem->cpioNames, NULL)) headerGetEntry(h, RPMTAG_FILENAMES, NULL, (void **) &mem->cpioNames, fileCountPtr); + headerRemoveEntry(h, RPMTAG_ORIGFILENAMES); fileCount = *fileCountPtr; -- 2.7.4