Checkpoint for installation of binary packages.
--HG-- extra : convert_revision : 0bc55ebae04b2e1e5ab20feca786b649fc2e0335
This commit is contained in:
@@ -140,13 +140,22 @@ void xbps_show_pkg_info(prop_dictionary_t);
|
||||
/*
|
||||
* Internal functions.
|
||||
*/
|
||||
bool xbps_list_pkgs_in_dict(prop_object_t, void *, bool *);
|
||||
bool xbps_list_strings_in_array(prop_object_t, void *, bool *);
|
||||
bool xbps_list_strings_in_array2(prop_object_t, void *, bool *);
|
||||
bool xbps_remove_string_from_array(prop_object_t, void *, bool *);
|
||||
bool xbps_show_pkg_info_from_repolist(prop_object_t obj, void *, bool *);
|
||||
bool xbps_show_pkg_namedesc(prop_object_t, void *, bool *);
|
||||
bool xbps_search_string_in_pkgs(prop_object_t, void *, bool *);
|
||||
char *xbps_get_pkgidx_string(const char *);
|
||||
bool xbps_list_pkgs_in_dict(prop_object_t, void *, bool *);
|
||||
bool xbps_list_strings_in_array(prop_object_t, void *, bool *);
|
||||
bool xbps_list_strings_in_array2(prop_object_t, void *, bool *);
|
||||
bool xbps_remove_string_from_array(prop_object_t, void *, bool *);
|
||||
bool xbps_show_pkg_info_from_repolist(prop_object_t obj, void *, bool *);
|
||||
bool xbps_show_pkg_namedesc(prop_object_t, void *, bool *);
|
||||
bool xbps_search_string_in_pkgs(prop_object_t, void *, bool *);
|
||||
int xbps_install_binary_pkg(const char *, const char *);
|
||||
int xbps_unpack_binary_pkg(const char *, int (*cb)(struct archive *));
|
||||
int xbps_cmpver_packages(const char *, const char *);
|
||||
int xbps_cmpver_versions(const char *, const char *);
|
||||
int xbps_check_reqdeps_in_pkg(const char *, prop_dictionary_t);
|
||||
|
||||
/* Utils */
|
||||
const char * xbps_get_pkg_version(const char *);
|
||||
char * xbps_get_pkg_name(const char *);
|
||||
bool xbps_append_full_path(char *, const char *, const char *);
|
||||
|
||||
#endif /* !_XBPS_PLIST_H_ */
|
||||
|
||||
@@ -28,19 +28,30 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#define NDEBUG
|
||||
#include <assert.h>
|
||||
|
||||
#include <prop/proplib.h>
|
||||
#include <archive.h>
|
||||
#include <archive_entry.h>
|
||||
|
||||
/* Default PATH for the repositories plist file. */
|
||||
#define XBPS_REPOLIST_PATH "/var/cache/xbps/repositories.plist"
|
||||
/* Default root PATH for xbps to store metadata info. */
|
||||
#define XBPS_META_PATH "/var/cache/xbps/"
|
||||
|
||||
/* Filename for the repositories plist file. */
|
||||
#define XBPS_REPOLIST "repositories.plist"
|
||||
|
||||
/* Filename of the package index plist for a repository. */
|
||||
#define XBPS_PKGINDEX "pkg-index.plist"
|
||||
|
||||
/* Default PATH for the plist file to register installed packages. */
|
||||
#define XBPS_REGPKGDB_DEFPATH "/var/cache/xbps/regpkgdb.plist"
|
||||
/* Filename of the packages register. */
|
||||
#define XBPS_REGPKGDB "regpkgdb.plist"
|
||||
|
||||
/* Return values for xbps_install_binary_pkg() */
|
||||
#define XBPS_PKG_ENOTINREPO 1 /* Not found in repos */
|
||||
#define XBPS_PKG_EEXIST 2 /* Already installed */
|
||||
#define XBPS_PKG_EINDEPS 3 /* Check deps failed */
|
||||
#define XBPS_PKG_ECHDIRDEST 4 /* chdir() to dest failed */
|
||||
#define XBPS_PKG_EEMPTY 5 /* empty pkg list */
|
||||
|
||||
#include "humanize_number.h"
|
||||
#include "plist.h"
|
||||
|
||||
Reference in New Issue
Block a user