xbps_register_pkg: remove 'automatic' boolean argument.
It should be provided in the proplib dictionary with key 'automatic-install'. This fixes a regression not respecting the 'automatic-install' value stored in regpkgdb.
This commit is contained in:
@@ -776,14 +776,12 @@ int xbps_purge_all_pkgs(void);
|
||||
* Register a package into the installed packages database.
|
||||
*
|
||||
* @param[in] pkg_dict A dictionary with the following objects:
|
||||
* \a pkgname, \a version, \a pkgver, \a short_desc (string)
|
||||
* and optionally \a provides (array of strings).
|
||||
* @param[in] automatic Set it to true to mark package that has been
|
||||
* installed by another package, and not explicitly.
|
||||
* \a pkgname, \a version, \a pkgver, \a short_desc (string),
|
||||
* \a automatic-install (bool) and optionally \a provides (array of strings).
|
||||
*
|
||||
* @return 0 on success, otherwise an errno value.
|
||||
*/
|
||||
int xbps_register_pkg(prop_dictionary_t pkg_dict, bool automatic);
|
||||
int xbps_register_pkg(prop_dictionary_t pkg_dict);
|
||||
|
||||
/**
|
||||
* Unregister a package from the package database.
|
||||
|
||||
Reference in New Issue
Block a user