summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-03-21 14:31:03 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-03-21 14:31:03 +0000
commit13044379d2741cd255e01dcd4a950ff1788aeea7 (patch)
tree9483a00fc3d8782e8a3cb35c65f94e022cafbd0b
parenteeaae2bd394317c7f4715db1ec0209d737926beb (diff)
downloadaports-turbo-13044379d2741cd255e01dcd4a950ff1788aeea7.tar.bz2
aports-turbo-13044379d2741cd255e01dcd4a950ff1788aeea7.tar.xz
check for missing maintainer
-rwxr-xr-xaports.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/aports.lua b/aports.lua
index 101d639..fea447d 100755
--- a/aports.lua
+++ b/aports.lua
@@ -87,7 +87,7 @@ function PackageRenderer:get(arch, name)
table.reqdeps_qty = (table.reqdeps ~= nil) and #table.reqdeps or "0"
table.subpkgs = QuerySubPackages(table.origin, table.name)
table.subpkgs_qty = (table.subpkgs ~= nil) and #table.subpkgs or "0"
- table.maintainer = string.gsub(table.maintainer, '<.*>', '')
+ table.maintainer = (table.maintainer ~= "") and string.gsub(table.maintainer, '<.*>', '') or "None"
for k in pairs (table) do
if table[k] == "" then
table[k] = nil
@@ -131,6 +131,7 @@ function QueryPackages(args)
sth:execute(args.package, args.arch, offset)
local r = {}
for row in sth:rows(true) do
+ print(inspect(row.maintainer))
r[#r+1] = {
package = row.name,
version = row.version,
@@ -139,7 +140,7 @@ function QueryPackages(args)
desc = row.desc,
arch = row.arch,
repo = row.repo,
- maintainer = string.gsub(row.maintainer, '<.*>', ''),
+ maintainer = (row.maintainer ~= "") and string.gsub(row.maintainer, '<.*>', '') or "None",
bdate = row.build_time
}
end