diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-30 10:27:39 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-30 10:27:39 +0200 |
| commit | ff1d513d23cb9df6b07a137b14a983f8269a6e07 (patch) | |
| tree | c09d4fb1ffd63b4b9edaf4ad921a04a62a408ccb /python | |
| parent | f5cec7ab0596ba15e6451745aa0770a84b151c58 (diff) | |
| parent | c085ac239354d78c3093049a4c48a27f514c6da2 (diff) | |
| download | python-apt-ff1d513d23cb9df6b07a137b14a983f8269a6e07.tar.gz | |
* python/cache.cc:
- fix crash if Ver.PriorityType() returns NULL
- add 'lenny' template info (closes: #476364)
Diffstat (limited to 'python')
| -rw-r--r-- | python/cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc index 66a2c5d9..bd280dec 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -599,7 +599,7 @@ static PyObject *VersionAttr(PyObject *Self,char *Name) else if (strcmp("Priority",Name) == 0) return Py_BuildValue("i",Ver->Priority); else if (strcmp("PriorityStr",Name) == 0) - return PyString_FromString(Ver.PriorityType()); + return Safe_FromString(Ver.PriorityType()); else if (strcmp("Downloadable", Name) == 0) return Py_BuildValue("b", Ver.Downloadable()); else if (strcmp("TranslatedDescription", Name) == 0) { |
