Is there a proper way how to get byte range of header?

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

 



Hi,
as you may know, the primary repodata contains information about header byte range, e.g.:
<rpm:header-range start="1384" end="1050136"/>

AFAIK, the rpm library doesn't provide any way how to get this information and tools like createrepo[1] or createrepo_c[2] have to do it by itself.

It would be nice if the rpm library had such functionality included, so all tools, which need this information, could use a standard way how to get it and also it would be handy for case that the header format will change in future.

Is there any plan to add such function into the rpm or it is already there and I've missed something?

Regards
Tomas


[1] http://yum.baseurl.org/gitweb?p=yum.git;a=blob;f=yum/packages.py;h=eebeb9dfd264b887b054187276cea12ced3a0bc2;hb=HEAD#l2212
[2] https://github.com/Tojaj/createrepo_c/blob/master/src/misc.c#L221
_______________________________________________
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