diff options
author | Guillem Jover <guillem@debian.org> | 2011-11-01 05:02:48 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2012-03-19 05:04:36 +0100 |
commit | 69a5e4d5cbca41583dd6133a865bfb1c3edbc91f (patch) | |
tree | a4fe1679eb8c453e06656b66ace6af488d9d574f /src/infodb.h | |
parent | 483a4cb09264e61a3bf772f3e9769979812fa537 (diff) | |
download | dpkg-69a5e4d5cbca41583dd6133a865bfb1c3edbc91f.tar.gz |
dpkg: Update on-disk database to use a multiarch compliant layout
The usage of the new layout is conditional to a prior database
upgrade that should write a version number greater than 0 in
<admindir>/info/format.
The file is parsed when needed from pkg_infodb_get_format().
Based-on-patch-by: Raphaƫl Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'src/infodb.h')
-rw-r--r-- | src/infodb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/infodb.h b/src/infodb.h index 338b5bccd..fbba824f7 100644 --- a/src/infodb.h +++ b/src/infodb.h @@ -25,6 +25,16 @@ #include <dpkg/dpkg-db.h> +enum pkg_infodb_format { + pkg_infodb_format_unknown = -1, + pkg_infodb_format_legacy = 0, + pkg_infodb_format_multiarch = 1, +}; + +enum pkg_infodb_format pkg_infodb_get_format(void); +void pkg_infodb_set_format(enum pkg_infodb_format format); +bool pkg_infodb_is_upgrading(void); + bool pkg_infodb_has_file(struct pkginfo *pkg, struct pkgbin *pkgbin, const char *name); |