aboutsummaryrefslogtreecommitdiffstats
path: root/rpm2header.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 15:53:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 15:53:32 +0000
commitbe00e4455844b5b83e07c97e041b205ad62186c9 (patch)
tree37aafa24075fb68aa8cdbe58241528132c4d5f27 /rpm2header.c
parentce88114faa0e19ddeda43d9deb3a325c3951697b (diff)
downloadrpmtools-be00e4455844b5b83e07c97e041b205ad62186c9.tar
rpmtools-be00e4455844b5b83e07c97e041b205ad62186c9.tar.gz
rpmtools-be00e4455844b5b83e07c97e041b205ad62186c9.tar.bz2
rpmtools-be00e4455844b5b83e07c97e041b205ad62186c9.tar.xz
rpmtools-be00e4455844b5b83e07c97e041b205ad62186c9.zip
- parsehdlist, rpm2header:
o do not add/use FILENAME_TAG and FILESIZE_TAG to/in hdlist anymore
Diffstat (limited to 'rpm2header.c')
-rw-r--r--rpm2header.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/rpm2header.c b/rpm2header.c
index cec2200..d8831f6 100644
--- a/rpm2header.c
+++ b/rpm2header.c
@@ -8,9 +8,6 @@
#include <rpmlib.h>
#include <rpm/rpmts.h>
-#define FILENAME_TAG 1000000
-#define FILESIZE_TAG 1000001
-
const char *basename(const char *f) {
char *p = strrchr(f, '/');
return p ? p + 1 : f;
@@ -76,8 +73,6 @@ int main(int argc, char **argv) {
headerRemoveEntry(h, RPMTAG_EXCLUSIVE);
headerRemoveEntry(h, RPMTAG_DISTRIBUTION);
headerRemoveEntry(h, RPMTAG_VERIFYSCRIPT);
- headerAddEntry(h, FILENAME_TAG, RPM_STRING_TYPE, name, 1);
- headerAddEntry(h, FILESIZE_TAG, RPM_INT32_TYPE, &size, 1);
headerWrite(fout, h, HEADER_MAGIC_YES);
headerFree(h);
}