From 1bb5b0f6bdc379f3393f4e62b7de9c71bf0c74f9 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Sun, 23 Mar 2014 03:35:10 +0100 Subject: [PATCH] Fix ValueError when selection contains a colon --- library/system/debconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/debconf b/library/system/debconf index 244561973d..4ffefc8ace 100644 --- a/library/system/debconf +++ b/library/system/debconf @@ -96,7 +96,7 @@ def get_selections(module, pkg): selections = {} for line in out.splitlines(): - (key, value) = line.split(':') + (key, value) = line.split(':', 1) selections[ key.strip('*').strip() ] = value.strip() return selections