From 78b23e1b3459aba9afcbe4c2314e55f2bcaf8ac2 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 30 Dec 2019 00:33:41 +1000 Subject: Fix Updated, this time for sure, until next time. --- apt-panopticon.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 56eb848..ee409a4 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -793,9 +793,7 @@ end local parseRelease = function(host) local list = {inf = 'Release', parser = parsePackages, out = 'Packages', files = {}, nextf = 'debs'} local updated = false --- local now = APT.execute('TZ="GMT" date "+%s"', false) - local now = os.date('!%s') - now = tonumber(now:sub(2, -2)) + local now = tonumber(os.date('!%s')) for i, n in pairs(releases) do for l, o in pairs(releaseFiles) do if repoExists(i .. o) then @@ -827,10 +825,8 @@ local parseRelease = function(host) else -- TODO - compare to the pkgmaster copy. if APT.testing('Updated') then --- local status, pkt = APT.execute([[TZ="GMT" date -d "$(grep '^Date:' results/pkgmaster.devuan.org/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']], false) local pkt = APT.exe([[TZ="GMT" date -d "$(grep '^Date:' results/pkgmaster.devuan.org/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']]):Do().result pkt = tonumber(pkt:sub(2, -2)) --- local status, new = APT.execute([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. host .. [[/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']], false) local new = APT.exe([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. host .. [[/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']]):Do().result new = tonumber(new:sub(2, -2)) local upd = pkt + APT.mirrors[host].Updated -- cgit v1.1