summaryrefslogtreecommitdiffstats
path: root/aports.lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-30 14:12:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-30 14:13:42 +0000
commita00d100c2de7e7abb4d1baa022959562243f3301 (patch)
tree1aacee862859092cea448b91c10ce52091f2a2da /aports.lua
parent7ac5bd33b35809af335458664d580be072cc3617 (diff)
downloadabuild-a00d100c2de7e7abb4d1baa022959562243f3301.tar.bz2
abuild-a00d100c2de7e7abb4d1baa022959562243f3301.tar.xz
aports.lua: also store url in pkg struct
Diffstat (limited to 'aports.lua')
-rwxr-xr-xaports.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/aports.lua b/aports.lua
index 1959097..557f9e2 100755
--- a/aports.lua
+++ b/aports.lua
@@ -49,7 +49,7 @@ end
local function split_apkbuild(line)
local r = {}
- local dir,pkgname, pkgver, pkgrel, arch, depends, makedepends, subpackages, source = string.match(line, "([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)")
+ local dir,pkgname, pkgver, pkgrel, arch, depends, makedepends, subpackages, source, url = string.match(line, "([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)")
r.dir = dir
r.pkgname = pkgname
r.pkgver = pkgver
@@ -58,6 +58,7 @@ local function split_apkbuild(line)
r.makedepends = split(makedepends)
r.subpackages = split_subpkgs(subpackages)
r.source = split(source)
+ r.url = url
return r
end
@@ -83,10 +84,11 @@ local function parse_apkbuilds(dirs)
makedepends=
subpackages=
source=
+ url=
dir="${i%/APKBUILD}"
cd "$dir"
. ./APKBUILD
- echo $dir\|$pkgname\|$pkgver\|$pkgrel\|$arch\|$depends\|$makedepends\|$subpackages\|$source
+ echo $dir\|$pkgname\|$pkgver\|$pkgrel\|$arch\|$depends\|$makedepends\|$subpackages\|$source\|$url
done
]])
return function()