This is the correct link: https://github.com/openSUSE/transactional-update/blob/master/sbin/create_dirs_from_rpmdb.c