diff options
author | onefang | 2019-12-30 00:33:41 +1000 |
---|---|---|
committer | onefang | 2019-12-30 00:33:41 +1000 |
commit | 78b23e1b3459aba9afcbe4c2314e55f2bcaf8ac2 (patch) | |
tree | 082828a7bd67c6b3ae20cf0a4626d6af530e1b33 | |
parent | Re archive the rest as well. (diff) | |
download | apt-panopticon-78b23e1b3459aba9afcbe4c2314e55f2bcaf8ac2.zip apt-panopticon-78b23e1b3459aba9afcbe4c2314e55f2bcaf8ac2.tar.gz apt-panopticon-78b23e1b3459aba9afcbe4c2314e55f2bcaf8ac2.tar.bz2 apt-panopticon-78b23e1b3459aba9afcbe4c2314e55f2bcaf8ac2.tar.xz |
Fix Updated, this time for sure, until next time.
-rwxr-xr-x | apt-panopticon.lua | 6 |
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 | |||
793 | local parseRelease = function(host) | 793 | local 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 |