this aborts() for me (librepo-0.0.5): #! /usr/bin/python import librepo if __name__ == "__main__": h = librepo.Handle() h.download('x', None)
The output: python: /home/akozumpl/repos/librepo/librepo/package_downloader.c:74: lr_download_package: Assertion `0' failed. Aborted
Hi, if you want to use download() method, you have to set a repository type: h.setopt(librepo.LRO_REPOTYPE, librepo.LR_YUMREPO) or: h.repotype = librepo.LR_YUMREPO I've fixed that, so it will raise a python exception instead of abort(). https://github.com/Tojaj/librepo/commit/024ef3d6c171de360839d39c8eb5f1715e48d7df