Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
abuild
Commits
a00d100c
Commit
a00d100c
authored
Dec 30, 2012
by
Natanael Copa
Browse files
aports.lua: also store url in pkg struct
parent
7ac5bd33
Changes
1
Hide whitespace changes
Inline
Side-by-side
aports.lua
View file @
a00d100c
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment