xbps-pkgdb: simplify the check code; make the reqby check work again.

This commit is contained in:
Juan RP
2012-11-17 17:43:54 +01:00
parent fcdb6b0930
commit e763f154a0
8 changed files with 70 additions and 146 deletions

View File

@@ -30,15 +30,11 @@
#include <xbps_api.h>
/* from check.c */
int check_pkg_integrity(struct xbps_handle *,
prop_dictionary_t,
const char *,
bool,
bool *);
int check_pkg_integrity(struct xbps_handle *, prop_dictionary_t, const char *);
int check_pkg_integrity_all(struct xbps_handle *);
#define CHECK_PKG_DECL(type) \
int check_pkg_##type (struct xbps_handle *, const char *, void *, bool *)
int check_pkg_##type (struct xbps_handle *, const char *, void *)
CHECK_PKG_DECL(unneeded);
CHECK_PKG_DECL(files);