diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-12 16:39:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-12 16:39:26 +0000 |
commit | 18ae84b79a92879a2d6b7d117a33fd7d53e691bf (patch) | |
tree | 27f11b71daf9ba3bf5491fc0b2fc376e585019da | |
parent | a7390aae71b03b8876a99894ec45f25dfdf319ff (diff) | |
download | upstream-monitor-master.tar.bz2 upstream-monitor-master.tar.xz |
-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 |