diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-24 12:45:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-24 12:45:55 +0000 |
commit | 17d981ec3303ca276a23f442dd7de7cc5b5e1a7f (patch) | |
tree | a0e99fb7b9718ff308b30123fe2a71d950f1289c | |
parent | d4b019ea2d172d9e419b2041efaf62ea6fc5bafe (diff) | |
download | lua-aports-17d981ec3303ca276a23f442dd7de7cc5b5e1a7f.tar.bz2 lua-aports-17d981ec3303ca276a23f442dd7de7cc5b5e1a7f.tar.xz |
buildrepo: only count the aports for our arch
-rwxr-xr-x | buildrepo.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildrepo.lua b/buildrepo.lua index fc618b5..bc3db1e 100755 --- a/buildrepo.lua +++ b/buildrepo.lua @@ -154,7 +154,9 @@ for _,repo in pairs(args) do -- count total aports stats[repo].aports = 0 for aport in db:each_aport() do - stats[repo].aports = stats[repo].aports + 1 + if aport:arch_enabled() then + stats[repo].aports = stats[repo].aports + 1 + end end -- find out what needs to be built |