summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/Ubuntu.info.in9
-rw-r--r--debian/changelog3
-rw-r--r--tests/data/sources.list.testDistribution2
-rw-r--r--tests/test_aptsources.py8
4 files changed, 22 insertions, 0 deletions
diff --git a/data/templates/Ubuntu.info.in b/data/templates/Ubuntu.info.in
index c3cfe6df..97554fa8 100644
--- a/data/templates/Ubuntu.info.in
+++ b/data/templates/Ubuntu.info.in
@@ -25,6 +25,7 @@ _CompDescriptionLong: Software restricted by copyright or legal issues
Suite: intrepid
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*8.10
+MatchURI: cdrom:\[Ubuntu.*8.10
_Description: Cdrom with Ubuntu 8.10 'Intrepid Ibex'
Available: False
Component: main
@@ -80,6 +81,7 @@ _CompDescriptionLong: Software restricted by copyright or legal issues
Suite: hardy
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*8.04
+MatchURI: cdrom:\[Ubuntu.*8.04
_Description: Cdrom with Ubuntu 8.04 'Hardy Heron'
Available: False
Component: main
@@ -134,6 +136,7 @@ _CompDescriptionLong: Software restricted by copyright or legal issues
Suite: gutsy
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*7.10
+MatchURI: cdrom:\[Ubuntu.*7.10
_Description: Cdrom with Ubuntu 7.10 'Gutsy Gibbon'
Available: False
Component: main
@@ -186,6 +189,7 @@ _CompDescriptionLong: Software restricted by copyright or legal issues
Suite: feisty
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*7.04
+MatchURI: cdrom:\[Ubuntu.*7.04
_Description: Cdrom with Ubuntu 7.04 'Feisty Fawn'
Available: False
Component: main
@@ -237,6 +241,7 @@ _CompDescriptionLong: Software restricted by copyright or legal issues
Suite: edgy
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*6.10
+MatchURI: cdrom:\[Ubuntu.*6.10
_Description: Cdrom with Ubuntu 6.10 'Edgy Eft'
Available: False
Component: main
@@ -288,6 +293,7 @@ _CompDescriptionLong: Software restricted by copyright or legal issues
Suite: dapper
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*6.06
+MatchURI: cdrom:\[Ubuntu.*6.06
_Description: Cdrom with Ubuntu 6.06 LTS 'Dapper Drake'
Available: False
Component: main
@@ -335,6 +341,7 @@ _CompDescription: Non-free (Multiverse)
Suite: breezy
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*5.10
+MatchURI: cdrom:\[Ubuntu.*5.10
_Description: Cdrom with Ubuntu 5.10 'Breezy Badger'
Available: False
Component: main
@@ -377,6 +384,7 @@ _CompDescription: Non-free (Multiverse)
Suite: hoary
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*5.04
+MatchURI: cdrom:\[Ubuntu.*5.04
_Description: Cdrom with Ubuntu 5.04 'Hoary Hedgehog'
Available: False
Component: main
@@ -418,6 +426,7 @@ _CompDescription: Non-free (Multiverse)
Suite: warty
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*4.10
+MatchURI: cdrom:\[Ubuntu.*4.10
_Description: Cdrom with Ubuntu 4.10 'Warty Warthog'
Available: False
Component: main
diff --git a/debian/changelog b/debian/changelog
index a2ae598a..e9d5710c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,9 +12,12 @@ python-apt (0.7.7.2) UNRELEASED; urgency=low
* python/progress.cc:
- when pulse() does not return a boolean assume "true"
(thanks to Martin Pitt for telling me about the problem)
+ * python/apt_pkgmodule.cc:
+ add "SelState{Unknown,Install,Hold,DeInstall,Purge}" constants
* aptsources/__init__.py, aptsources/distinfo.py:
- run apt_pkg.init() when aptsources gets imported and not
the distinfo function
+ - fix detection of cdrom sources and add test for it
-- Michael Vogt <michael.vogt@ubuntu.com> Wed, 30 Jul 2008 10:24:30 +0200
diff --git a/tests/data/sources.list.testDistribution b/tests/data/sources.list.testDistribution
index 45c155e9..0f40e85a 100644
--- a/tests/data/sources.list.testDistribution
+++ b/tests/data/sources.list.testDistribution
@@ -9,3 +9,5 @@ deb http://ftp.debian.org/debian sid main
deb http://ubuntu.cs.uaf.edu/ubuntu/ hardy main
deb http://ubuntu.cs.uaf.edu/ubuntu/ hardy-backports main
deb http://archive.ubuntu.com/ubuntu/ intrepid main
+deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Alpha]/ intrepid main
+deb cdrom:[Ubuntu 8.04 _Hardy Heron_] hardy main \ No newline at end of file
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 4b2c7965..49fe6afa 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -83,6 +83,14 @@ class TestAptSources(unittest.TestCase):
def testMatcher(self):
apt_pkg.Config.Set("Dir::Etc::sourcelist","data/sources.list.testDistribution")
+ sources = aptsources.sourceslist.SourcesList()
+ distro = aptsources.distro.get_distro()
+ distro.get_sources(sources)
+ # test if all suits of the current distro were detected correctly
+ dist_templates = set()
+ for s in sources:
+ if not s.template:
+ self.fail("source entry '%s' has no matcher" % s)
def testDistribution(self):
apt_pkg.Config.Set("Dir::Etc::sourcelist","data/sources.list.testDistribution")