aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon.lua6
1 files changed, 1 insertions, 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
793local parseRelease = function(host) 793local parseRelease = function(host)
794 local list = {inf = 'Release', parser = parsePackages, out = 'Packages', files = {}, nextf = 'debs'} 794 local list = {inf = 'Release', parser = parsePackages, out = 'Packages', files = {}, nextf = 'debs'}
795 local updated = false 795 local updated = false
796-- local now = APT.execute('TZ="GMT" date "+%s"', false) 796 local now = tonumber(os.date('!%s'))
797 local now = os.date('!%s')
798 now = tonumber(now:sub(2, -2))
799 for i, n in pairs(releases) do 797 for i, n in pairs(releases) do
800 for l, o in pairs(releaseFiles) do 798 for l, o in pairs(releaseFiles) do
801 if repoExists(i .. o) then 799 if repoExists(i .. o) then
@@ -827,10 +825,8 @@ local parseRelease = function(host)
827 else 825 else
828-- TODO - compare to the pkgmaster copy. 826-- TODO - compare to the pkgmaster copy.
829 if APT.testing('Updated') then 827 if APT.testing('Updated') then
830-- 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)
831 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 828 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
832 pkt = tonumber(pkt:sub(2, -2)) 829 pkt = tonumber(pkt:sub(2, -2))
833-- local status, new = APT.execute([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. host .. [[/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']], false)
834 local new = APT.exe([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. host .. [[/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']]):Do().result 830 local new = APT.exe([[TZ="GMT" date -d "$(grep '^Date:' results/]] .. host .. [[/merged/dists/]] .. n .. [[/Release.SORTED | cut -d ' ' -f 2-)" '+%s']]):Do().result
835 new = tonumber(new:sub(2, -2)) 831 new = tonumber(new:sub(2, -2))
836 local upd = pkt + APT.mirrors[host].Updated 832 local upd = pkt + APT.mirrors[host].Updated