From 7eac8aca8f235d93be6cca351df99eb11f95bfd0 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 9 Aug 2016 19:46:44 +0200 Subject: [PATCH] Handle when an update name does not contain the version --- astronaut/freshnaut | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astronaut/freshnaut b/astronaut/freshnaut index 15d62c7..a337621 100755 --- a/astronaut/freshnaut +++ b/astronaut/freshnaut @@ -90,6 +90,8 @@ function get_available_versions(satellite) local versions = {} local count = 0 for update_name in update_names:gmatch("[^,]+") do + assert(update_name:match(version), "Invalid update name " .. update_name .. " does not contain " .. version) + local loop_regex, end_regex = make_regex(update_name, version) for x in update_file:gmatch(loop_regex) do