Skip to content
Snippets Groups Projects
Commit 3be2c805 authored by Matthias Klose's avatar Matthias Klose
Browse files

package version python-defaults-2.3.5-7

parent 38758ae2
No related branches found
No related tags found
No related merge requests found
python-defaults (2.3.5-7) unstable; urgency=low
* Point to the draft of the reworked Python policy.
* Fiy 'pyversions -r current' (Raphael Hertzog).
-- Matthias Klose <doko@debian.org> Mon, 12 Jun 2006 13:38:41 +0200
python-defaults (2.3.5-6) unstable; urgency=low
* Last 2.3.5 upload, 2.4.3 can be found in experimental.
......
......@@ -9,7 +9,7 @@ Package: python
Architecture: all
Priority: standard
Depends: python2.3 (>= 2.3.5-1)
Conflicts: python2.3 (<= 2.3.2-6), python2.1 (<= 2.1.2), python-xmlbase, python-csv, python-bz2, python-base
Conflicts: python2.3 (<= 2.3.2-6), python2.1 (<= 2.1.2), python-xmlbase, python-csv, python-bz2, python-base, python-central (<< 0.4.8)
Replaces: python2.3 (<= 2.3.2-6), python-xmlbase, python-base
Provides: python-email, python-xmlbase
Suggests: python-doc, python-tk, python-profiler
......
......@@ -9,7 +9,7 @@ Package: python
Architecture: all
Priority: standard
Depends: @PVER@ (>= @PREVVER@)
Conflicts: python2.3 (<= 2.3.2-6), python2.1 (<= 2.1.2), python-xmlbase, python-csv, python-bz2, python-base
Conflicts: python2.3 (<= 2.3.2-6), python2.1 (<= 2.1.2), python-xmlbase, python-csv, python-bz2, python-base, python-central (<< 0.4.8)
Replaces: python2.3 (<= 2.3.2-6), python-xmlbase, python-base
Provides: python-email, python-xmlbase
Suggests: python-doc, python-tk, python-profiler
......
......@@ -23,6 +23,11 @@
<version>version 0.3.7.2</version>
<abstract>
The Python policy is currently in change; a draft
for the new policy can be found
<url id="http://people.debian.org/~piman/python-policy/"
name="here">.
This document describes the packaging of Python within the
Debian GNU/Linux distribution and the policy requirements for
packaged Python programs and modules.
......
......@@ -50,9 +50,9 @@ def supported_versions(version_only=False):
global _supported_versions
if not _supported_versions:
if os.path.exists('/usr/share/python/debian_defaults'):
import ConfigParser
config = ConfigParser.SafeConfigParser()
config.read('/usr/share/python/debian_defaults')
from ConfigParser import SafeConfigParser
config = SafeConfigParser()
config.readfp(file('/usr/share/python/debian_defaults'))
value = config.get('DEFAULT', 'supported-versions')
_supported_versions = [s.strip() for s in value.split(',')]
else:
......@@ -92,11 +92,10 @@ def requested_versions(vstring, version_only=False):
vinfo = parse_versions(vstring)
supported = supported_versions(version_only=True)
if len(vinfo) == 1:
vkey = vinfo[vinfo.keys()[0]]
if 'all' in vinfo:
versions = supported
elif 'current' in vinfo:
versions = [default_version()]
versions = [default_version(version_only=True)]
else:
versions = vinfo['versions'].intersection(supported)
elif 'all' in vinfo and 'current' in vinfo:
......
......@@ -87,6 +87,7 @@ clean:
rm -f $$f2; \
fi; \
done
rm -f debian/*.py[co]
dh_clean
stamp-control:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment