summaryrefslogtreecommitdiff
path: root/python/metaindex.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-11-03 11:47:49 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-11-03 11:47:49 +0100
commit3210127e509e8d0e649d019a6d30de04bbb6fd49 (patch)
treebf84beeae47cb3f10af6322d152806b46ec62ddb /python/metaindex.cc
parente7811c1935bb36b35bfe0ba30056ac4209a27377 (diff)
parentfd973539e3ab0a724a69fa9a9eb6b5f2210bb3e1 (diff)
downloadpython-apt-3210127e509e8d0e649d019a6d30de04bbb6fd49.tar.gz
* python/apt_pkgmodule.cc:
- add "SelState{Unknown,Install,Hold,DeInstall,Purge}" constants * python/metaindex.cc - fix crash when incorrect attribute is given * data/templates/Ubuntu.info.in: - updated
Diffstat (limited to 'python/metaindex.cc')
-rw-r--r--python/metaindex.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/metaindex.cc b/python/metaindex.cc
index c9a86ab4..45c8ef2a 100644
--- a/python/metaindex.cc
+++ b/python/metaindex.cc
@@ -38,6 +38,9 @@ static PyObject *MetaIndexAttr(PyObject *Self,char *Name)
}
return List;
}
+
+ PyErr_SetString(PyExc_AttributeError,Name);
+ return 0;
}
static PyObject *MetaIndexRepr(PyObject *Self)