diff options
author | Bastian Blank <waldi@debian.org> | 2006-01-06 22:32:16 +0000 |
---|---|---|
committer | Bastian Blank <waldi@debian.org> | 2006-01-06 22:32:16 +0000 |
commit | b37871ac10473cf32f6cbe83e15eb18bd9f21a8a (patch) | |
tree | fd28b873a3ee486604b8425523323f40e8de22d0 /debian/lib/python/debian_linux/utils.py | |
parent | 5008990d6c0aca56bc6cdc430842cbc75d75a569 (diff) | |
download | kernel_replicant_linux-b37871ac10473cf32f6cbe83e15eb18bd9f21a8a.tar.gz kernel_replicant_linux-b37871ac10473cf32f6cbe83e15eb18bd9f21a8a.tar.bz2 kernel_replicant_linux-b37871ac10473cf32f6cbe83e15eb18bd9f21a8a.zip |
* Set compiler build dependencies from config informations.
* Install debian/lib into headers-all package.
* Unlink version file before writing to them.
* debian/README: Remove outdated information.
r5275: waldi | 2006-01-05 14:00:15 +0100
* debian/lib/python/debian_linux/debian.py: Move package class from utils.
* debian/lib/python/debian_linux/utils.py: Use package class from debian.
r5277: waldi | 2006-01-05 14:41:45 +0100
* debian/lib/python/debian_linux/debian.py
- Add package_relation, package_relation_list and package_relation_group
classes.
- Use them in the package class.
* debian/lib/python/debian_linux/gencontrol.py
- Support new relation classes.
r5278: waldi | 2006-01-05 14:46:55 +0100
debian/bin/gencontrol.py: Use relation objects for tree entry.
r5279: waldi | 2006-01-05 15:20:00 +0100
* debian/bin/gencontrol.py: Don't fail if some relation fields are empty.
* debian/lib/python/debian_linux/debian.py: Merge relation entries.
r5280: waldi | 2006-01-05 15:24:08 +0100
* debian/arch/defines, debian/arch/hppa/defines: Set relations for compiler.
* debian/lib/python/debian_linux/gencontrol.py: Set compiler build dependencies
from config informations.
* debian/templates/control.source.in: Remove compiler from Build-Depends.
r5281: waldi | 2006-01-05 15:39:45 +0100
* debian/rules.real
- Install debian/lib into headers-all package.
- Call dh_python with python version 2.4.
* debian/templates/control.source.in:
Add python to build-depends, needed by dh_python.
r5282: waldi | 2006-01-05 16:36:33 +0100
debian/rules.real
- Remove outdated comment about include_common_config.
- Remove support for headers_dirs.
r5283: waldi | 2006-01-05 16:38:05 +0100
debian/arch/amd64/Makefile.inc, debian/arch/arm/Makefile.inc,
debian/arch/hppa/Makefile.inc, debian/arch/powerpc/Makefile.inc,
debian/arch/sparc/Makefile.inc: Remove not longer supported variables.
r5284: waldi | 2006-01-05 16:42:33 +0100
debian/lib/python/debian_linux/gencontrol.py:
Warn if the class setting is not available.
r5287: waldi | 2006-01-05 19:07:05 +0100
debian/arch/powerpc/defines: Set kernel-arch for all except powerpc64 to ppc.
r5288: waldi | 2006-01-05 19:08:35 +0100
debian/lib/python/debian_linux/config.py:
Only bail out if a section is not found in any config file.
r5294: waldi | 2006-01-05 19:26:57 +0100
debian/lib/python/debian_linux/gencontrol.py
- Support config underlay.
- Add some small default implementations.
r5295: waldi | 2006-01-05 19:39:55 +0100
debian/README: Remove outdated information.
r5325: waldi | 2006-01-06 22:40:17 +0100
debian/bin/apply.py
- Don't reference the debian_linux module, it is not available.
- Unlink version file before writing to them.
svn path=/dists/trunk/linux-2.6/; revision=5327
Diffstat (limited to 'debian/lib/python/debian_linux/utils.py')
-rw-r--r-- | debian/lib/python/debian_linux/utils.py | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/debian/lib/python/debian_linux/utils.py b/debian/lib/python/debian_linux/utils.py index 22c93b20904d..770fd4829c56 100644 --- a/debian/lib/python/debian_linux/utils.py +++ b/debian/lib/python/debian_linux/utils.py @@ -1,4 +1,4 @@ -import re, textwrap +import debian, re, textwrap class _sorted_dict(dict): __slots__ = ('_list') @@ -77,48 +77,6 @@ class field_string(str): def __str__(self): return '\n '.join(self.split('\n')) -class package(dict): - _fields = sorted_dict(( - ('Package', str), - ('Source', str), - ('Architecture', field_list), - ('Section', str), - ('Priority', str), - ('Maintainer', str), - ('Uploaders', str), - ('Standards-Version', str), - ('Build-Depends', str), - ('Build-Depends-Indep', str), - ('Provides', field_list_commata), - ('Depends', field_list_commata), - ('Recommends', field_list_commata), - ('Suggests', field_list_commata), - ('Replaces', field_list_commata), - ('Conflicts', field_list_commata), - ('Description', field_string), - )) - - def __setitem__(self, key, value): - try: - value = self._fields[key](value) - except KeyError: pass - super(package, self).__setitem__(key, value) - - def iterkeys(self): - for i in self._fields.iterkeys(): - if self.has_key(i) and self[i]: - yield i - - def iteritems(self): - for i in self._fields.iterkeys(): - if self.has_key(i) and self[i]: - yield (i, self[i]) - - def itervalues(self): - for i in self._fields.iterkeys(): - if self.has_key(i) and self[i]: - yield self[i] - class templates(dict): def __init__(self, dir = None): if dir is None: @@ -143,7 +101,7 @@ class templates(dict): f = file("%s/%s.in" % (self.dir, filename)) while True: - e = package() + e = debian.package() while True: line = f.readline() if not line: |