[pacman-dev] [alpm] PM_ERR_PKG_HOLD - what's this?

Georg Grabler ggrabler at gmail.com
Thu Jun 21 09:02:19 EDT 2007


Adding a package like if i do with -S.

basically converted to c code (from binding code)
alpm_option_set_dbpath("/var/lib/pacman");
alpm_db_register('local');
alpm_db_register('community');
alpm_db_register('extra');
alpm_db_register('current');
alpm_trans_init(PM_TRANS_TYPE_SYNC, PM_TRANS_FLAG_CASCADE |
PM_TRANS_FLAG_RECURSE, NULL, NULL, NULL);
alpm_trans_addtarget(in_name);
ptr = (alpm_list_t*) malloc(sizeof(alpm_list_t));
alpm_trans_prepare(&ptr));
data = alpm_trans_get_pkgs();
if(alpm_trans_commit(&data) == -1) {
  cleanup();
  return pm_errno;   ### here is the return 50 (PM_ERR_PKG_HOLD)
}

If i remove IgnorePkg directives from pacman.conf (IgnorePkg = qtcurve-kde3)
it works properly.

- I thought configuration handling is now done by pacman
- Do i need to set the IgnorePkg of alpm for some reason?
- I have no idea why this can fail.

Yours,
Georg (STiAT)

On 6/21/07, Xavier <shiningxc at gmail.com> wrote:
>
> What are you doing exactly ?
> Seems like this should happen only if you're trying to remove a
> package in HoldPkg, then answer "no" when it asks you for
> confirmation.
> So it could help to have more information about the transaction you're
> doing, which packages are in HoldPkg, which answer you give to this
> question, etc
>
> _______________________________________________
> pacman-dev mailing list
> pacman-dev at archlinux.org
> http://archlinux.org/mailman/listinfo/pacman-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20070621/7d9f23f7/attachment.htm>


More information about the pacman-dev mailing list