From 2ea4a511ffbb5d97cc77fb91a73b059d929fab35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 8 Jun 2016 02:20:57 +0200 Subject: [PATCH] lorax: allow '.' in image label Otherwise "R3.2" will end up as "R3-2". --- lorax-templates-qubes/templates/x86.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lorax-templates-qubes/templates/x86.tmpl b/lorax-templates-qubes/templates/x86.tmpl index b90a446..5689940 100644 --- a/lorax-templates-qubes/templates/x86.tmpl +++ b/lorax-templates-qubes/templates/x86.tmpl @@ -11,7 +11,7 @@ from distutils.version import LooseVersion ## Don't allow spaces or escape characters in the iso label def valid_label(ch): - return ch.isalnum() or ch == '_' + return ch.isalnum() or ch in ('_', '.') isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel) %>