[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
rpmlib functions problem
- From: Marcin Krzysztof Porwit <mporwit centeris com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: rpmlib functions problem
- Date: Tue, 25 Apr 2006 14:54:44 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm playing around with the functions exposed via librpm. Using
Chapter 16 of the Red Hat RPM Guide as a crutch, I'm trying to read
the header information from a package. I'm pretty sure that I coded
it up correctly, but I get rather odd results. My code calls
headerDump() first, and then headerNEVRE(), and attempts to print out
the results. Here's the output that I get:
rhel4-devel[RPMs]% ~/rpmheader zsh-4.2.0-3.i386.rpm
Entry count: 7
CT TAG TYPE OFSET COUNT
Entry : 000 (62)(unknown) BIN 0xffffff90 00000016
Entry : 001 (267)(unknown) BIN 0xffffff90 00000065
Entry : 002 (269)(unknown) STRING 0xffffff90 00000001
Entry : 003 (1000)(unknown) INT32 0xffffff90 00000001
Entry : 004 (1004)(unknown) BIN 0xffffff90 00000016
Entry : 005 (1005)(unknown) BIN 0xffffff90 00000065
Entry : 006 (1007)(unknown) INT32 0xffffff90 00000001
Name is [(null)]
Epoch is []
Version is [(null)]
Relase is [(null)]
Arch is [(null)]
What's bizarre here is that the RPMTAG definitions don't seem to line
up with the tag types. RPMTAG_NAME is defined as 1000, but is stored
as an INT32 type. I'm testing this on RPMs that ship with RHEL4ES, so
I'm assuming those were created properly, with all the fields populated.
The platform ships with rpm-devel v4.3...
- --
Marcin Krzysztof Porwit
mporwit centeris com
#include <stddisclaimer.h>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFETpqk4OZU6cX5VBERAkYiAJ91Ap87UNlwK9NbkNzWWbTKUu7HigCfdVeJ
467T6x0ZFzGVPRV9yeky8TI=
=Lbp0
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]