[PATCH v2 03/10] pakfire: Replace duplicate code with dblist functioncall