aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index e9b1015..5797f91 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -853,10 +853,8 @@ local parseRelease = function(host)
853 coroutine.yield() 853 coroutine.yield()
854 D('*>* Resumed coroutine while waiting on - not APT.checkFile(results_old/' .. fRp .. ')') 854 D('*>* Resumed coroutine while waiting on - not APT.checkFile(results_old/' .. fRp .. ')')
855 end 855 end
856 local pkt = APT.exe([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. fRp .. [[ | cut -d ' ' -f 2-)" '+%s']]):Do().result 856 local pkt = tonumber(APT.exe([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. fRp .. [[ | cut -d ' ' -f 2-)" '+%s']]):Do().result:sub(2, -2))
857 pkt = tonumber(pkt:sub(2, -2)) 857 local new = tonumber(APT.exe([[TZ="GMT" date -d "$(grep '^Date:' ]] .. fR .. [[.SORTED | cut -d ' ' -f 2-)" '+%s']]):Do().result:sub(2, -2))
858 local new = APT.exe([[TZ="GMT" date -d "$(grep '^Date:' ]] .. fR .. [[.SORTED | cut -d ' ' -f 2-)" '+%s']]):Do().result
859 new = tonumber(new:sub(2, -2))
860 local upd = pkt + APT.mirrors[host].Updated 858 local upd = pkt + APT.mirrors[host].Updated
861 local updd = pkt + (APT.mirrors[host].Updated * 1.5) -- Give the mirror time to actually do the update. 859 local updd = pkt + (APT.mirrors[host].Updated * 1.5) -- Give the mirror time to actually do the update.
862 if pkt > new then 860 if pkt > new then