[pacman-dev] [PATCH] libalpm: more verbose error message for unsatisfied deps

Aurelien Foret aurelien at archlinux.org
Sat Dec 31 13:12:50 EST 2005


VMiklos wrote:
> hi
> 
> http://frugalware.org/~vmiklos/patches/libpacman-proposed/verbose_unsat_deps.diff
> 
>   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




More information about the pacman-dev mailing list