summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-03-20 09:40:28 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-03-20 09:40:28 +0000
commit5c8ada0181366d44bba147bb494a0c800097d765 (patch)
treef89be19bebc1e86574a45bd86882048bfbe4091a
parentf5c8e9b24cf03fd91db0838b9a86bcf85c6a1296 (diff)
downloadaports-turbo-5c8ada0181366d44bba147bb494a0c800097d765.tar.bz2
aports-turbo-5c8ada0181366d44bba147bb494a0c800097d765.tar.xz
page is only needed when table is true
-rwxr-xr-xaports.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/aports.lua b/aports.lua
index 95d7c70..3ee1406 100755
--- a/aports.lua
+++ b/aports.lua
@@ -28,9 +28,8 @@ function ContentsRenderer:get()
table.rows = QueryContents(fname, pname, args.arch, args.page)
local rows = (table.rows ~= nil) and (#table.rows) or 0
table.pager = CreatePagerUri(args, rows)
+ table.page = (args.page == "") and "1" or args.page
end
- print(inspect(table.pager))
- table.page = (args.page == "") and "1" or args.page
table.filename = args.filename
table.pkgname = args.pkgname
table[args.arch] = true