autoupdate: remove potential trailing slash from mirror URL

This commit is contained in:
Matthias Schiffer 2016-07-15 02:49:28 +02:00
parent 390b221b51
commit f375cb7b30
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ local function read_manifest(mirror)
local ret = {}
-- Remove potential trailing slash
mirror = mirror:gsub('/$', '')
-- Read all lines from the manifest
-- The upper part is saves to lines, the lower part to sigs
for line in io.popen(string.format("exec wget -T 120 -O- '%s/%s.manifest'", mirror, branch.name), 'r'):lines() do