> > Add SyncFirst option. > > This patch offers a way to fix FS#9228. > By putting "SyncFirst = pacman" in pacman.conf, the version check will > happen before the transaction really starts, and before any replacements > is > made. > Otherwise, no version check is done. > > The sync301 pactest was updated to use this SyncFirst option. > > Example session with SyncFirst = pacman, and a newer pacman version > available : > $ pacman -Su (or pacman -S <any targets>) > :: the following packages should be upgraded first : > pacman > :: Do you want to cancel the current operation > :: and upgrade these packages now? [Y/n] > > resolving dependencies... > looking for inter-conflicts... > > Targets: pacman-x.y.z-t > > Total Download Size: x.xx MB > Total Installed Size: x.xx MB > > Proceed with installation? [Y/n] n > > As Nagy previously noted, doing this check on any -S operations might > look > intrusive, but it can be required. > For example, the case where you want to install a package with versioned > provisions, using a pacman version which didn't support that feature yet > (and there is already a newer pacman in sync db supporting it). > > Signed-off-by: Chantry Xavier <[EMAIL PROTECTED]> > Signed-off-by: Dan McGee <[EMAIL PROTECTED]> >
\o/ > commit f43805d875ad5c672afbbfff48bded2087204773 > Author: Chantry Xavier <[EMAIL PROTECTED]> > Date: Sat May 10 18:47:42 2008 +0200 > > Cleanup usages of alpm_list_find and alpm_list_remove. > > * remove obsolete and unused *_cmp helper functions like deppkg_cmp and > _alpm_grp_cmp > > * new alpm_list_remove_str function, used 6 times in handle.c > > * remove _alpm_prov_cmp / _alpm_db_whatprovides and replace them by > a more general alpm_find_pkg_satisfiers with a cleaner implementation. > before: alpm_db_whatprovides(db, targ) > after: alpm_find_pkg_satisfiers(alpm_db_getpkgcache(db), targ) Warning: pkg literal also satisfies pkg. But in most cases we called what_provides if we didn't find a literal. > * remove satisfycmp and replace alpm_list_find + satisfycmp usage by > _alpm_find_dep_satisfiers. > before : alpm_list_find(_alpm_db_get_pkgcache(db), dep, satisfycmp) > after : _alpm_find_dep_satisfiers(_alpm_db_get_pkgcache(db), dep) Warning: possible slowdown, the old way just stopped after a satisfier (which is ideal in checkdeps), now we scan the whole db. > > * remove _alpm_pkgname_pkg_cmp, which was used with alpm_list_remove, > and > use _alpm_pkg_find + alpm_list_remove with _alpm_pkg_cmp instead. > Imho this is ugly. First we find it, then we again find it via list_remove. ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/ _______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev