aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-13 05:02:08 +1000
committeronefang2019-12-13 05:02:08 +1000
commit3e9ee1df599d4072ae6b68a9836a17e6f8751ef1 (patch)
treedd4012ab58d22ff9167b061b8fb8f03055f834be
parentRefactor the protocols table. (diff)
downloadapt-panopticon-3e9ee1df599d4072ae6b68a9836a17e6f8751ef1.zip
apt-panopticon-3e9ee1df599d4072ae6b68a9836a17e6f8751ef1.tar.gz
apt-panopticon-3e9ee1df599d4072ae6b68a9836a17e6f8751ef1.tar.bz2
apt-panopticon-3e9ee1df599d4072ae6b68a9836a17e6f8751ef1.tar.xz
Have I finally fixed that copy-pasta bug?
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 2 insertions, 2 deletions
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)
524 os.execute('grep -s " | pool/DEBIAN/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >results/NEW_Packages_' .. r .. '.test.tmp') 524 os.execute('grep -s " | pool/DEBIAN/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >results/NEW_Packages_' .. r .. '.test.tmp')
525 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') 525 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')
526 os.execute('grep -s " | pool/DEVUAN/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >>results/NEW_Packages_' .. r .. '.test.tmp') 526 os.execute('grep -s " | pool/DEVUAN/" results/NEW_Packages_' .. r .. '.sorted.txt 2>/dev/null | head -n 1 >>results/NEW_Packages_' .. r .. '.test.tmp')
527 os.execute('mv results/NEW_Release_' .. n .. '.test.tmp results/NEW_Release_' .. n .. '.test.txt') 527 os.execute('mv results/NEW_Packages_' .. r .. '.test.tmp results/NEW_Packages_' .. r .. '.test.txt')
528 else 528 else
529 C("Can't find file Packages/" .. r .. dir .. "Packages_parsed-sorted") 529 C("Can't find file Packages/" .. r .. dir .. "Packages_parsed-sorted")
530 end 530 end
@@ -532,7 +532,7 @@ local postDownload = function(host, r, k)
532 os.execute('mv -f results/pkgmaster.devuan.org/merged/dists/' .. r .. dir .. 'Packages_parsed-sorted Packages/' .. r .. dir .. 'Packages_parsed-sorted') 532 os.execute('mv -f results/pkgmaster.devuan.org/merged/dists/' .. r .. dir .. 'Packages_parsed-sorted Packages/' .. r .. dir .. 'Packages_parsed-sorted')
533 end 533 end
534 else 534 else
535 while not APT.checkFile('results/NEW_Release_' .. r .. '.test.txt') do os.execute('sleep 10') end 535 while not APT.checkFile('results/NEW_Packages_' .. r .. '.test.txt') do os.execute('sleep 10') end
536 end 536 end
537 os.execute('rm -f results/' .. host .. '/merged/dists/' .. r .. dir .. 'Packages 2>/dev/null') 537 os.execute('rm -f results/' .. host .. '/merged/dists/' .. r .. dir .. 'Packages 2>/dev/null')
538 os.execute('rm -f results/' .. host .. '/merged/dists/' .. r .. dir .. 'Packages.* 2>/dev/null') 538 os.execute('rm -f results/' .. host .. '/merged/dists/' .. r .. dir .. 'Packages.* 2>/dev/null')