Help with python api, accessing missing "requires" fields from a .src.rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to use the rpm python api and I have a question about retrieving info from hdrFromFdno
I do hdr = hdrFromFdno(fd), and then I get back a hdr object with lots of data.
The problem is that it seems that hdr lacks the Requires: parts of the .spec file. Everything else seems to be there, including the BuildRequires. 
The fd is for "rpm-4.8.0-16.el6.src.rpm" which I got from http://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/rpm-4.8.0-16.el6.src.rpm

hdr[rpm.RPMTAG_REQUIRES] seems to be the BuildRequires portion of the .spec

when I search for coreutils (one of the Requires packages) in the hdr by doing: for k in hdr: if isinstance(hdr[k], collections.Iterable): if 'coreutils' in hdr[k]: print k I get nothing

Thanks for your time.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux