diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-02 12:17:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-02 12:17:41 +0000 |
commit | c2b0381fa2938ba661c00e3f6543480969b7ea54 (patch) | |
tree | 3f410040bcb4ebacb808a42b64e0710ba299ef8c /main/lua-aports/skip-messages.patch | |
parent | 474fb2056b5dbb239f6087288f2ef4e9a19da068 (diff) | |
download | aports-c2b0381fa2938ba661c00e3f6543480969b7ea54.tar.bz2 aports-c2b0381fa2938ba661c00e3f6543480969b7ea54.tar.xz |
main/lua-aports: upgrade to 0.3
Diffstat (limited to 'main/lua-aports/skip-messages.patch')
-rw-r--r-- | main/lua-aports/skip-messages.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/main/lua-aports/skip-messages.patch b/main/lua-aports/skip-messages.patch deleted file mode 100644 index 65959ede7b..0000000000 --- a/main/lua-aports/skip-messages.patch +++ /dev/null @@ -1,49 +0,0 @@ -diff --git a/buildrepo.lua b/buildrepo.lua -index 21b444b..23260b9 100755 ---- a/buildrepo.lua -+++ b/buildrepo.lua -@@ -68,15 +68,12 @@ local function skip_aport(aport) - return true - end - --local function build_aport(aport, repodest, logdir, skip_failed) -+local function build_aport(aport, repodest, logdir) - local success, errmsg = lfs.chdir(aport.dir) - if not success then - err("%s", errmsg) - return nil - end -- if skip_failed and skip_aport(aport) then -- return nil -- end - local logredirect = "" - if logdir ~= nil then - local dir = ("%s/%s"):format(logdir, aport.pkgname) -@@ -179,16 +176,19 @@ for _,repo in pairs(args) do - for aport in db:each_in_build_order(pkgs) do - tried = tried + 1 - local totally_built = stats[repo].relevant_aports - #pkgs + built -- io.write(("%d/%d %d/%d %s %s\n"):format(tried, #pkgs, -- totally_built, stats[repo].relevant_aports, -- aport.pkgname, aport.pkgver)) - if not db:known_deps_exists(aport) then - warn("%s: Skipped due to missing dependencies", aport.pkgname) -- elseif build_aport(aport, repodest, logdir, opts.s) then -- built = built + 1 -- else -- if not opts.k then -- os.exit(1) -+ elseif not (opts.s and skip_aport(aport)) then -+ io.write(("%d/%d %d/%d %s %s\n"):format(tried, #pkgs, -+ totally_built, -+ stats[repo].relevant_aports, -+ aport.pkgname, aport.pkgver)) -+ if build_aport(aport, repodest, logdir) then -+ built = built + 1 -+ else -+ if not opts.k then -+ os.exit(1) -+ end - end - end - end |