summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-21 14:21:22 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-21 14:21:22 +0200
commit16166e89fb1d1243ac92017f03d7bdada904cd38 (patch)
tree5ef99504defe264461e617b1ff94a28c4617e790 /python/cache.cc
parent9d00ce840131092e7a7ae26cd0b0279c7646a7a5 (diff)
downloadpython-apt-16166e89fb1d1243ac92017f03d7bdada904cd38.tar.gz
apt_pkg: Add apt_pkg.Version.multi_arch and friends
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/cache.cc b/python/cache.cc
index 160fd208..b263d320 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -1047,6 +1047,11 @@ static PyObject *VersionGetTranslatedDescription(PyObject *Self, void*) {
Ver.TranslatedDescription());
}
+static PyObject *VersionGetMultiArch(PyObject *Self, void*)
+{
+ return MkPyNumber(Version_GetVer(Self)->MultiArch);
+}
+
#if 0 // FIXME: enable once pkgSourceList is stored somewhere
static PyObject *VersionGetIsTrusted(PyObject *Self, void*) {
else if (strcmp("IsTrusted", Name) == 0)
@@ -1122,6 +1127,9 @@ static PyGetSetDef VersionGetSet[] = {
"The numeric ID of the package."},
{"installed_size",VersionGetInstalledSize,0,
"The installed size of this package version."},
+ {"multi_arch",VersionGetMultiArch,0,
+ "Multi-arch state of this package, as an integer. See\n"
+ "the various MULTI_ARCH_* members."},
{"parent_pkg",VersionGetParentPkg,0,
"The parent package of this version."},
{"priority",VersionGetPriority,0,