From fd217ba882e96885a8808ed94ec006191b292f96 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Jan 2014 07:21:28 +0000 Subject: pkg: fix bug in arch_enabled --- aports/pkg.lua | 2 +- buildrepo.lua | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/aports/pkg.lua b/aports/pkg.lua index 0a08bfc..8cacbd8 100644 --- a/aports/pkg.lua +++ b/aports/pkg.lua @@ -99,7 +99,7 @@ function M.apk_file_exists(pkg, name) end function M.arch_enabled(pkg) - return pkg.arch.all or pkg.arch.noarch or pkg.arch[abuild_arch] + return pkg.arch.all or pkg.arch.noarch or pkg.arch[abuild.arch] end function M.init(pkg) diff --git a/buildrepo.lua b/buildrepo.lua index 3cee760..d99527f 100755 --- a/buildrepo.lua +++ b/buildrepo.lua @@ -78,10 +78,6 @@ local function build_aport(aport, repodest, logdir) return pipe:close() end -local function build_repo(aportsdir, repodest, logdir, repo, keep_going) - return true -end - local function post_purge(repodest, repo) local keep = {} local lfs = require('lfs') -- cgit v1.2.3