1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 01:41:52 -05:00
Xavier Chantry 5b51dbb11e Cleanup of _alpm_pkg_compare_versions.
* Change the return values to be more informative.

It was previously boolean, only indicating if a sync package was newer than
a local package.

Now it is a simple wrapper to vercmp, handling the force flag.

* Remove the verbose output from _alpm_pkg_compare_versions.

The "force" message is not so useful.
The "package : local (v1) is newer than repo (v2)" message can be moved to
-Su operation.
For the -S operation, it is better to have something like :
"downgrading package from v1 to v2"

* Don't display the "up to date -- skipping" and "up to date -- reinstalling"
messages, when the local version is newer than the sync one.

* Fix the behavior of --needed option to not skip a target when the local
version is newer, and clarify its description.

* Add a new alpm_pkg_has_force function

This allows us to access the pkg->force field like any other package fields.

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2008-08-23 08:47:07 -05:00
..
2008-07-30 07:24:32 -05:00
2008-08-23 08:47:07 -05:00
2008-07-15 19:16:42 -05:00
2008-01-27 11:54:25 -06:00
2008-06-04 15:38:47 -05:00
2008-06-04 15:38:47 -05:00
2008-07-19 11:04:38 -05:00
2008-07-13 09:16:55 -05:00
2008-04-10 20:53:28 -05:00
2008-06-04 15:38:47 -05:00
2008-06-03 21:31:31 -05:00
2008-06-03 21:31:31 -05:00
2008-06-04 15:38:47 -05:00
2008-08-23 08:47:07 -05:00
2008-01-27 12:05:33 -06:00
2008-07-15 19:16:42 -05:00
2008-03-10 18:57:36 -05:00
2008-07-24 22:16:28 -05:00