From 3e9ee1df599d4072ae6b68a9836a17e6f8751ef1 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 13 Dec 2019 05:02:08 +1000 Subject: Have I finally fixed that copy-pasta bug? --- apt-panopticon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 8b02626..b87bf72 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -524,7 +524,7 @@ local postDownload = function(host, r, k) os.execute('grep -s " | pool/DEBIAN/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >results/NEW_Packages_' .. r .. '.test.tmp') os.execute('grep -s " | pool/DEBIAN-SECURITY/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >>results/NEW_Packages_' .. r .. '.test.tmp') os.execute('grep -s " | pool/DEVUAN/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >>results/NEW_Packages_' .. r .. '.test.tmp') - os.execute('mv results/NEW_Release_' .. n .. '.test.tmp results/NEW_Release_' .. n .. '.test.txt') + os.execute('mv results/NEW_Packages_' .. r .. '.test.tmp results/NEW_Packages_' .. r .. '.test.txt') else C("Can't find file Packages/" .. r .. dir .. "Packages_parsed-sorted") end @@ -532,7 +532,7 @@ local postDownload = function(host, r, k) os.execute('mv -f results/pkgmaster.devuan.org/merged/dists/' .. r .. dir .. 'Packages_parsed-sorted Packages/' .. r .. dir .. 'Packages_parsed-sorted') end else - while not APT.checkFile('results/NEW_Release_' .. r .. '.test.txt') do os.execute('sleep 10') end + while not APT.checkFile('results/NEW_Packages_' .. r .. '.test.txt') do os.execute('sleep 10') end end os.execute('rm -f results/' .. host .. '/merged/dists/' .. r .. dir .. 'Packages 2>/dev/null') os.execute('rm -f results/' .. host .. '/merged/dists/' .. r .. dir .. 'Packages.* 2>/dev/null') -- cgit v1.1