diff options
-rwxr-xr-x | aports-vercmp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/aports-vercmp b/aports-vercmp index 486187c..9ca844a 100755 --- a/aports-vercmp +++ b/aports-vercmp @@ -7,6 +7,7 @@ This content is released under the MIT License. --]] upstream_providers = { + (require("upstream.mate")), (require("upstream.gnome")), (require("upstream.github")), (require("upstream.archlinux")), @@ -15,7 +16,8 @@ upstream_providers = { maintainer = {} io.stderr:write("Reading aports...\n") -db = require("aports.db").new("~/aports", "main") +db = require("aports.db").new("~/aports", { "main", "community" }) + rev = {} for p in db:each_aport() do @@ -53,8 +55,12 @@ for m, pkgs in pairs(maintainer) do print("==== "..m.." ====") for pkg in db:each_in_build_order(pkgs) do p = rev[pkg.dir] - print(string.format("%-40s(current: %s) %s", + if not p then + print("no rev["..pkg.dir.."]") + else + print(string.format("%-40s(current: %s) %s", p.name.."-"..p.new, p.current, p.upstream)) + end end print() end |