summaryrefslogtreecommitdiff
path: root/python/generic.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-31 22:14:52 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-31 22:14:52 +0200
commit01ae32fec88cc63623874752f79b052fbb2cf028 (patch)
tree691ce7320e5fb9d9eb268423bd90b46f3a7e4749 /python/generic.cc
parent82dc1170b0b29f7bb264d046d1c9253f4d97fb10 (diff)
parent0051fdbeff5e08248900cf0b8858178a3dceba7b (diff)
downloadpython-apt-01ae32fec88cc63623874752f79b052fbb2cf028.tar.gz
merged from http://bzr.debian.org/apt/python-apt/debian-sid/
Diffstat (limited to 'python/generic.cc')
-rw-r--r--python/generic.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/generic.cc b/python/generic.cc
index d08b12c0..0719d1bb 100644
--- a/python/generic.cc
+++ b/python/generic.cc
@@ -31,11 +31,11 @@ PyObject *HandleErrors(PyObject *Res)
Py_DECREF(Res);
}
- std::string Err;
+ string Err;
int errcnt = 0;
while (_error->empty() == false)
{
- std::string Msg;
+ string Msg;
bool Type = _error->PopMessage(Msg);
if (errcnt > 0)
Err.append(", ");
@@ -63,6 +63,7 @@ static PyObject *_PyApt_NewNameForAttribute(const char *attr) {
if (strcasecmp(attr, "ReadPinFile") == 0) return PyString_FromString("read_pinfile");
if (strcasecmp(attr, "SetReInstall") == 0) return PyString_FromString("set_reinstall");
if (strcasecmp(attr, "URI") == 0) return PyString_FromString("uri");
+ if (strcasecmp(attr, "ArchiveURI") == 0) return PyString_FromString("archive_uri");
if (strcasecmp(attr, "MD5Hash") == 0) return PyString_FromString("md5_hash");
if (strcasecmp(attr, "SHA1Hash") == 0) return PyString_FromString("sha1_hash");
if (strcasecmp(attr, "SHA256Hash") == 0) return PyString_FromString("sha256_hash");