diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-03-26 15:53:37 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-03-26 15:53:37 +0100 |
| commit | 33851a84b6868eaff1fadaa5b5f57aa696cdc2e8 (patch) | |
| tree | 4a6e24fc90e012f17515f0363a2424429ba951ee /python/generic.cc | |
| parent | 95112f12cea6ec54aaa8b5e372ee158a300f8967 (diff) | |
| parent | 57624b5df523c0b3a3ebc1741680f283ee1fbbcd (diff) | |
| download | python-apt-33851a84b6868eaff1fadaa5b5f57aa696cdc2e8.tar.gz | |
Merge with mvo, with the following changes:
* python/generic.cc is changed instead of python/indexfile.cc
to add the ArchiveURI property
* tests/test_apt_cache.py is changed to assert the properties
of the Dependency object instead of assigning them to a
variable.
The additions to the changelog are:
[ Julian Andres Klode ]
- Map ArchiveURI property to archive_uri
[ Michael Vogt ]
* apt/cache.py:
- make cache open silent by default (use apt.progress.base.OpProgress)
* tests/data/aptsources_ports/sources.list:
- fix ports test-data
* tests/test_apt_cache.py:
- add simple test for basic cache/dependency iteration
Diffstat (limited to 'python/generic.cc')
| -rw-r--r-- | python/generic.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/generic.cc b/python/generic.cc index 1c68a481..e04743ff 100644 --- a/python/generic.cc +++ b/python/generic.cc @@ -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"); |
