summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Rocca <ema@debian.org>2008-07-21 17:30:43 +0200
committerEmanuele Rocca <ema@debian.org>2008-07-21 17:30:43 +0200
commitf05130ee834d60bbcf4245185886342584a3a4f9 (patch)
tree5de9a3dfb2acf3d1728092e09ceaf06d2dbf48cb
parente365aa1c9166eb6228cc84818ae3dfa075908420 (diff)
downloadpython-apt-f05130ee834d60bbcf4245185886342584a3a4f9.tar.gz
* data/templates/Debian.info.in:
- s/MatchUri/MatchURI/. Thanks, Gustavo Noronha Silva (closes: #487673) * python/cache.cc: - Throw an exception rather than segfaulting when GetCache() is called before InitSystem() (closes: #369147)
-rw-r--r--data/templates/Debian.info.in10
-rw-r--r--debian/changelog10
-rw-r--r--python/cache.cc5
3 files changed, 20 insertions, 5 deletions
diff --git a/data/templates/Debian.info.in b/data/templates/Debian.info.in
index 244e1c6b..b635de19 100644
--- a/data/templates/Debian.info.in
+++ b/data/templates/Debian.info.in
@@ -3,7 +3,7 @@ _ChangelogURI: http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changel
Suite: etch
RepositoryType: deb
BaseURI: http://http.us.debian.org/debian/
-MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
+MatchURI: ftp[0-9]*\.[a-z]\.debian\.org
MirrorsFile: /usr/share/python-apt/templates/Debian.mirrors
_Description: Debian 4.0 'Etch'
Component: main
@@ -26,7 +26,7 @@ _Description: Security updates
Suite: sarge
RepositoryType: deb
BaseURI: http://http.us.debian.org/debian/
-MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
+MatchURI: ftp[0-9]*\.[a-z]\.debian\.org
MirrorsFile: /usr/share/python-apt/templates/Debian.mirrors
_Description: Debian 3.1 'Sarge'
Component: main
@@ -49,7 +49,7 @@ _Description: Security updates
Suite: stable
RepositoryType: deb
BaseURI: http://http.us.debian.org/debian/
-MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
+MatchURI: ftp[0-9]*\.[a-z]\.debian\.org
MirrorsFile: /usr/share/python-apt/templates/Debian.mirrors
_Description: Debian current stable release
Component: main
@@ -62,7 +62,7 @@ _CompDescription: Non-DFSG-compatible Software
Suite: testing
RepositoryType: deb
BaseURI: http://http.us.debian.org/debian/
-MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
+MatchURI: ftp[0-9]*\.[a-z]\.debian\.org
MirrorsFile: /usr/share/python-apt/templates/Debian.mirrors
_Description: Debian testing
Component: main
@@ -75,7 +75,7 @@ _CompDescription: Non-DFSG-compatible Software
Suite: sid
RepositoryType: deb
BaseURI: http://http.us.debian.org/debian/
-MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
+MatchURI: ftp[0-9]*\.[a-z]\.debian\.org
MirrorsFile: /usr/share/python-apt/templates/Debian.mirrors
_Description: Debian 'Sid' (unstable)
Component: main
diff --git a/debian/changelog b/debian/changelog
index c48bdafe..dd13d341 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+python-apt (0.7.8) unstable; urgency=low
+
+ * data/templates/Debian.info.in:
+ - s/MatchUri/MatchURI/. Thanks, Gustavo Noronha Silva (closes: #487673)
+ * python/cache.cc:
+ - Throw an exception rather than segfaulting when GetCache() is called
+ before InitSystem() (closes: #369147)
+
+ -- Emanuele Rocca <ema@debian.org> Mon, 21 Jul 2008 17:20:59 +0200
+
python-apt (0.7.7) unstable; urgency=low
* python/apt_pkgmodule.cc:
diff --git a/python/cache.cc b/python/cache.cc
index 36e49710..66a2c5d9 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -928,6 +928,11 @@ PyObject *TmpGetCache(PyObject *Self,PyObject *Args)
if (PyArg_ParseTuple(Args, "|O", &pyCallbackInst) == 0)
return 0;
+ if (_system == 0) {
+ PyErr_SetString(PyExc_ValueError,"_system not initialized");
+ return 0;
+ }
+
pkgCacheFile *Cache = new pkgCacheFile();
if(pyCallbackInst != 0) {