Getting started
Now I’m finally done with my exams for the semester and travelled home where I will spend the summer.
This week I started to work on my project which is adding .db support to pkg_install. I have written some database helper functions and a simple converter program that indexes portnames in /var/db/pkg to the database file which is going to act as a cache rather than a replacement for the whole flat-database. I have rewritten some functions in pkg_info that uses the cache and it works well and seemingly faster although I have not taken time measurements (writing a time comparison script is on my todo-list).
Next week I will continue to improve the converter to index more information that is needed and gradually rewrite the pkg-tools to make use of the database.