From 4422206485133eef7e919a1b1f3e03c179b011e0 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 11 May 2013 15:29:32 +0100 Subject: [PATCH] Always supply an example version number Avoids error: zeroinstall.injector.model.InvalidInterface: Missing version attribute --- archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive.py b/archive.py index 0f8f982..d6f6028 100644 --- a/archive.py +++ b/archive.py @@ -266,7 +266,7 @@ class AddArchiveBox: impl_element.setAttribute('id', id) impl_element.setAttribute('released', time.strftime('%Y-%m-%d')) - if version: impl_element.setAttribute('version', version) + impl_element.setAttribute('version', version or '0.1') created_impl = True else: created_impl = False -- 2.11.4.GIT