diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-07 20:42:15 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-24 03:46:12 -0500 |
commit | 79e98316ea89486d107466858543e965bcfbb0a9 (patch) | |
tree | e22572124cffc7275a200e4964c4ea112457fa52 /lib/libalpm/alpm.h | |
parent | 1150d9e15aaea2ae1f259995d11442f491ef0af7 (diff) | |
download | pacman-79e98316ea89486d107466858543e965bcfbb0a9.tar.xz |
Add a 'valid' flag to the database object
Start by converting all of our flags to a 'status' bitmask (pkgcache
status, grpcache status). Add a new 'valid' flag as well. This will let
us keep track if the database itself has been marked valid in whatever
fashion.
For local databases at the moment we ensure there are no depends files;
for sync databases we ensure the PGP signature is valid if
required/requested. The loading of the pkgcache is prohibited if the
database is invalid.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r-- | lib/libalpm/alpm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index eb2eff88..579b45f2 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1002,6 +1002,7 @@ enum _pmerrno_t { PM_ERR_DB_NULL, PM_ERR_DB_NOT_NULL, PM_ERR_DB_NOT_FOUND, + PM_ERR_DB_INVALID, PM_ERR_DB_VERSION, PM_ERR_DB_WRITE, PM_ERR_DB_REMOVE, |