[pacman-dev] [PATCH] libalpm: more verbose error message for unsatisfied deps
hi http://frugalware.org/~vmiklos/patches/libpacman-proposed/verbose_unsat_deps... before: $ sudo pacman -S kdebase :: kdebase-3.5.0-4: local version is up to date. Upgrade anyway? [Y/n] resolving dependencies... done. looking for inter-conflicts... error: failed to prepare transaction (could not satisfy dependencies) after: $ sudo pacman -S kdebase :: kdebase-3.5.0-4: local version is up to date. Upgrade anyway? [Y/n] resolving dependencies... done. looking for inter-conflicts... ERROR: cannot satisfy dependency for "kdebase" (requires "hal>=0.5.5-2") error: failed to prepare transaction (could not satisfy dependencies) (ok, till dont_hide_errors.diff isn't applied you'll need the --debug option to get this) udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
VMiklos wrote:
hi
http://frugalware.org/~vmiklos/patches/libpacman-proposed/verbose_unsat_deps...
before: $ sudo pacman -S kdebase :: kdebase-3.5.0-4: local version is up to date. Upgrade anyway? [Y/n] resolving dependencies... done. looking for inter-conflicts... error: failed to prepare transaction (could not satisfy dependencies)
after: $ sudo pacman -S kdebase :: kdebase-3.5.0-4: local version is up to date. Upgrade anyway? [Y/n] resolving dependencies... done. looking for inter-conflicts... ERROR: cannot satisfy dependency for "kdebase" (requires "hal>=0.5.5-2") error: failed to prepare transaction (could not satisfy dependencies)
(ok, till dont_hide_errors.diff isn't applied you'll need the --debug option to get this)
udv / greetings, VMiklos
Well, isn't that supposed to be done on the frontend side? For instance, when a ADD transaction preparation fails, the frontend displays more details based on the pm_errno value returned by the library (as implemented in pacman_add function). Could the same thing also be done for the sync part in alpm_trans_prepare() error handling code block, or did I miss the point? -- Aurelien
On Sat, Dec 31, 2005 at 07:12:50PM +0100, Aurelien Foret <aurelien@archlinux.org> wrote:
Well, isn't that supposed to be done on the frontend side?
For instance, when a ADD transaction preparation fails, the frontend displays more details based on the pm_errno value returned by the library (as implemented in pacman_add function).
hm, ok. here is a reworked patch: http://frugalware.org/~vmiklos/patches/libpacman-proposed/verbose_unsat_deps... udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
VMiklos wrote:
hm, ok. here is a reworked patch: http://frugalware.org/~vmiklos/patches/libpacman-proposed/verbose_unsat_deps...
Applied, althought I did not add the PM_ERR_FILE_CONFLICTS case (this error can't occur during the preparation of a sync transaction) -- Aurelien
participants (2)
-
Aurelien Foret
-
VMiklos