Browse Source

Handle when an update name does not contain the version

master
mid-kid 8 years ago
parent
commit
7eac8aca8f
  1. 2
      astronaut/freshnaut

2
astronaut/freshnaut

@ -90,6 +90,8 @@ function get_available_versions(satellite)
local versions = {} local versions = {}
local count = 0 local count = 0
for update_name in update_names:gmatch("[^,]+") do 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) local loop_regex, end_regex = make_regex(update_name, version)
for x in update_file:gmatch(loop_regex) do for x in update_file:gmatch(loop_regex) do

Loading…
Cancel
Save