summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-01-12 08:26:58 -0600
committerSol Jerome <sol.jerome@gmail.com>2011-01-12 08:26:58 -0600
commitfb4fb07c0701278ee4093a412cab340ac16857d1 (patch)
treee3b56e8863b3774aa8d52466b2f54e340e6401d5 /src/lib/Client
parent1545e4a6dc0ae96eee32ae929e4bff0d05058880 (diff)
downloadbcfg2-fb4fb07c0701278ee4093a412cab340ac16857d1.tar.gz
bcfg2-fb4fb07c0701278ee4093a412cab340ac16857d1.tar.bz2
bcfg2-fb4fb07c0701278ee4093a412cab340ac16857d1.zip
DebInit: Account for future lenny updates (Resolves Ticket #977)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/DebInit.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/Client/Tools/DebInit.py b/src/lib/Client/Tools/DebInit.py
index aee8ffd65..119036b32 100644
--- a/src/lib/Client/Tools/DebInit.py
+++ b/src/lib/Client/Tools/DebInit.py
@@ -7,10 +7,7 @@ import re
import Bcfg2.Client.Tools
# Debian squeeze and beyond uses a dependecy based boot sequence
-DEBIAN_OLD_STYLE_BOOT_SEQUENCE = (
- 'etch', '4.0',
- 'lenny', '5.0', '5.0.1', '5.0.2', '5.0.3', '5.0.4', '5.0.4', '5.0.5',
- )
+DEBIAN_OLD_STYLE_BOOT_SEQUENCE = ('etch', '4.0', 'lenny')
class DebInit(Bcfg2.Client.Tools.SvcTool):
@@ -33,7 +30,8 @@ class DebInit(Bcfg2.Client.Tools.SvcTool):
deb_version = 'unknown'
if entry.get('sequence'):
- if (deb_version in DEBIAN_OLD_STYLE_BOOT_SEQUENCE):
+ if (deb_version in DEBIAN_OLD_STYLE_BOOT_SEQUENCE or
+ deb_version.startswith('5')):
start_sequence = int(entry.get('sequence'))
kill_sequence = 100 - start_sequence
else: