Improved finding obsolete files while upgrading pkgs.
This commit is contained in:
@ -56,7 +56,7 @@
|
||||
*/
|
||||
#define XBPS_PKGINDEX_VERSION "1.5"
|
||||
|
||||
#define XBPS_API_VERSION "20121009"
|
||||
#define XBPS_API_VERSION "20121023"
|
||||
|
||||
#ifndef XBPS_VERSION
|
||||
#define XBPS_VERSION "UNSET"
|
||||
@ -685,6 +685,22 @@ const char *xbps_fetch_error_string(void);
|
||||
*/
|
||||
prop_array_t xbps_find_pkg_orphans(struct xbps_handle *xhp, prop_array_t orphans);
|
||||
|
||||
/**
|
||||
* @ingroup pkg_obsoletes
|
||||
*
|
||||
* Finds obsolete files by comparing installed files dictionary with
|
||||
* a new files dictionary.
|
||||
*
|
||||
* @param[in] xhp The pointer to the xbps_handle struct.
|
||||
* @param[in] instd Installed package files dictionary (\a XBPS_PKGFILES).
|
||||
* @param[in] newd New package files dictionary (provided by a binary package).
|
||||
*
|
||||
* @return A proplib array of strings with a sorted list of obsolete files.
|
||||
*/
|
||||
prop_array_t xbps_find_pkg_obsoletes(struct xbps_handle *xhp,
|
||||
prop_dictionary_t instd,
|
||||
prop_dictionary_t newd);
|
||||
|
||||
/** @addtogroup pkgdb */
|
||||
/*@{*/
|
||||
|
||||
|
Reference in New Issue
Block a user