Added xbps_repository_pkg_replaces() to handle pkg "replaces" in the transaction.

The frontend (in that case xbps-bin(8)) is only responsible to remove
those packages that have the "trans-action" string object set to "remove".
This commit is contained in:
Juan RP
2011-02-01 01:21:54 +01:00
parent 7b159d6f33
commit fdc496e8f1
8 changed files with 163 additions and 123 deletions

View File

@@ -53,7 +53,7 @@
* @def XBPS_RELVER
* Current library release date.
*/
#define XBPS_RELVER "20110130"
#define XBPS_RELVER "20110201"
/**
* @def XBPS_META_PATH

View File

@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2010 Juan Romero Pardines.
* Copyright (c) 2010-2011 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -192,6 +192,13 @@ int HIDDEN xbps_file_exec_skipempty(const char *arg, ...);
*/
int HIDDEN xbps_file_chdir_exec(const char *path, const char *arg, ...);
/**
* @private
* From lib/package_replaces.c
*/
int HIDDEN xbps_repository_pkg_replaces(prop_dictionary_t,
prop_dictionary_t);
__END_DECLS
#endif /* !_XBPS_API_IMPL_H_ */