From: ewt Date: Tue, 19 Dec 1995 16:09:38 +0000 (+0000) Subject: Changed RPMTAB_FILESTATES to INT8 from CHAR X-Git-Tag: tznext/4.11.0.1.tizen20130304~11902 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03df85e13db3208b779cdb531ef3be6bfcfd1260;p=tools%2Flibrpm-tizen.git Changed RPMTAB_FILESTATES to INT8 from CHAR Added GIF's CVS patchset: 58 CVS date: 1995/12/19 16:09:38 --- diff --git a/convertdb.c b/convertdb.c index 7089c6d..eded759 100644 --- a/convertdb.c +++ b/convertdb.c @@ -24,6 +24,8 @@ int convertDB(char * dbprefix) { Header dbentry; unsigned int dboffset; char * group; + char * gif; + int gifSize; char ** fileList; char ** fileMD5List; char ** fileLinktoList; @@ -91,6 +93,12 @@ int convertDB(char * dbprefix) { addEntry(dbentry, RPMTAG_COPYRIGHT, STRING_TYPE, package.copyright, 1); addEntry(dbentry, RPMTAG_GROUP, STRING_TYPE, group, 1); + gif = rpmdbGetPackageGif(&olddb, *label, &gifSize); + if (gif) { + /*addEntry(dbentry, RPMTAG_GIF, BIN_TYPE, gif, gifSize);*/ + free(gif); + } + if (package.fileCount) { /* some packages have no file lists */ @@ -149,7 +157,7 @@ int convertDB(char * dbprefix) { package.fileCount); addEntry(dbentry, RPMTAG_FILERDEVS, INT16_TYPE, fileRDevsList, package.fileCount); - addEntry(dbentry, RPMTAG_FILESTATES, CHAR_TYPE, fileStatesList, + addEntry(dbentry, RPMTAG_FILESTATES, INT8_TYPE, fileStatesList, package.fileCount); free(fileList);