[pacman-dev] Problems with alpm
ggrabler at gmail.com
Mon Jun 4 17:40:34 EDT 2007
I'm once again having problems with the code in alpm. I can't seem to find out
how to correctly register databases.
I've the bindings basically ready, and need to do the implementation now
(pyalpm). So, the following problem occured:
I set the database path to /var/lib/pacman (or /var/lib/pacman/community,
tried both). It seems as if alpm_option_set_dbpath can't cause errors (void
return), so i ignored it.
alpm_trans_init runs without returning -1, so i expect it to be succeeded.
On alpm_trans_addtarget, i finally get the -1, with pm_errno 11, meaning
PM_ERR_DB_NULL. I don't know (lacking docs) what this means, and why this can
Do you have any hints for me?
cdef pyalpm_config c_config
c_config = pyalpm_config()
config = c_config
db = config.getDatabasePath()
print db # output is OK
<pmtransflag_t((<int>PM_TRANS_FLAG_CASCADE) | (<int>PM_TRANS_FLAG_RECURSE)),
NULL, NULL, NULL) == -1):
if (alpm_trans_addtarget(in_name) == -1):
return -2 # here it exits
Seems as if i'm missing something
More information about the pacman-dev