[Libosinfo] [PATCH osinfo-db 0/4] treeinfo data fixes
Cole Robinson
crobinso at redhat.com
Fri Mar 1 20:57:52 UTC 2019
On 3/1/19 3:54 PM, Cole Robinson wrote:
> I wrote a script which iterates over the database and pulls out any
> <tree> URLs that have associated <treeinfo> metadata, then passes those
> URLs to osinfo_tree_create_from_location + osinfo_guess_os_from_tree,
> to ensure that we detect the URL as the same OS that it's listed with.
> I'll attach the script in a follow up mail.
>
Script attached. This could be a starting point for a testcase I guess.
I think we would also want a test suite with raw treeinfo files though
which would be easier to unit test, in playing with this stuff it's
clear that it's easy to add a new treeinfo annotation which breaks
detection for an old URL
- Cole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osinfo-check-urls.py
Type: text/x-python
Size: 3507 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20190301/5a41c358/attachment.py>
More information about the Libosinfo
mailing list