libxbps: added xbps_transaction_autoremove_pkgs(bool purge).

This is to add package orphans into the transaction dictionary.
This commit is contained in:
Juan RP
2011-11-25 11:20:03 +01:00
parent bbfd2813b2
commit 0ff0aee226
6 changed files with 96 additions and 64 deletions

View File

@ -55,7 +55,7 @@
*/
#define XBPS_PKGINDEX_VERSION "1.3"
#define XBPS_API_VERSION "20111125-1"
#define XBPS_API_VERSION "20111125-2"
#define XBPS_VERSION "0.11.0"
/**
@ -1176,6 +1176,17 @@ int xbps_transaction_update_pkg(const char *pkgname);
*/
int xbps_transaction_update_packages(void);
/**
* Finds all package orphans currently installed and adds them into
* the transaction dictionary.
*
* @param[in] purge If true packages will also be purged.
*
* @return 0 on succcess, ENOENT if no package orphans were found, ENXIO
* or EINVAL if a problem ocurred in the process.
*/
int xbps_transaction_autoremove_pkgs(bool purge);
/**
* Returns the transaction dictionary, as shown above in the image.
* Before returning the package list is sorted in the correct order