summaryrefslogtreecommitdiff
path: root/doc/source/conf.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-06-02 09:58:00 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-06-02 09:58:00 +0200
commitd6cc940087ee8897bad4e6a25d04403d28c5dc0a (patch)
tree9b48e5cbb8388ae3a0385fd18ed45b4cc097fd85 /doc/source/conf.py
parent50f9df7e415deb9bb6156ef8f596b6d4d49b23a4 (diff)
parent919e1b4d3dad602130aff9bb56d6741be02d831d (diff)
downloadpython-apt-d6cc940087ee8897bad4e6a25d04403d28c5dc0a.tar.gz
* data/templates/Ubuntu.info.in,
data/templates/Ubuntu.mirrors: - updated for Ubuntu maverick * doc/source/conf.py: - do not fail on non-digits in the version number * utils/get_debian_mirrors.py: - ignore mirrors without a county
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r--doc/source/conf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 5f82d5eb..05490da7 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -78,7 +78,8 @@ except KeyError:
release = p2.communicate()[0]
# Handle the alpha release scheme
-if int(release.split("~")[0].split(".")[2]) >= 90:
+release_raw = release.split("~")[0].split(".")[2]
+if release_raw.isdigit() and int(release_raw) >= 90:
version_s = release.split("~")[0].split(".")[:3]
# Set the version to 0.X.100 if the release is 0.X.9Y (0.7.90 => 0.7.100)
# Use
@@ -90,6 +91,7 @@ if int(release.split("~")[0].split(".")[2]) >= 90:
del version_s
else:
version = '.'.join(release.split("~")[0].split('.')[:3])
+del release_raw
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.