libxbps: improve code to match replaced package patterns.

The replaces code now checks all package dictionaries in the
transaction dictionary, and the sorting algorithm will put packages
to be removed at the head of the tailq.

This should fix issue 11 in googlecode.
This commit is contained in:
Juan RP
2011-10-20 14:39:58 +02:00
parent eae6bf8ab4
commit 51b45a0d08
9 changed files with 182 additions and 179 deletions

View File

@ -172,10 +172,9 @@ int HIDDEN xbps_file_chdir_exec(const char *, const char *, ...);
/**
* @private
* From lib/package_replaces.c
* From lib/transaction_package_replace.c
*/
int HIDDEN xbps_repository_pkg_replaces(prop_dictionary_t,
prop_dictionary_t);
int HIDDEN xbps_transaction_package_replace(prop_dictionary_t);
/**
* @private