Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
abuild
Commits
ec6a945d
Commit
ec6a945d
authored
Feb 20, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: dont check md5sum if there are no sources. fix depends_has
parent
2f40d9a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
abuild
abuild
+15
-6
No files found.
abuild
View file @
ec6a945d
...
...
@@ -78,13 +78,17 @@ sanitycheck() {
[
-z
"
$url
"
]
&&
die
"Missing url in APKBUILD"
[
-z
"
$license
"
]
&&
die
"Missing license in APKBULID"
for
i
in
$source
;
do
md5sums_has
${
i
##*/
}
||
die
"
${
i
##*/
}
is missing in md5sums"
done
if
[
-n
"
$source
"
]
;
then
for
i
in
$source
;
do
md5sums_has
${
i
##*/
}
||
die
"
${
i
##*/
}
is missing in md5sums"
done
fi
for
i
in
$(
echo
"
$md5sums
"
|
awk
'{ print $2 }'
)
;
do
source_has
$i
||
die
"
$i
is missing in source"
done
if
[
-n
"
$md5sums
"
]
;
then
for
i
in
$(
echo
"
$md5sums
"
|
awk
'{ print $2 }'
)
;
do
source_has
$i
||
die
"
$i
is missing in source"
done
fi
# common spelling errors
[
-n
"
$depend
"
]
&&
die
"APKBUILD contains 'depend'. It should be depends"
...
...
@@ -542,6 +546,7 @@ builddeps() {
# replace the md5sums in the APKBUILD
checksum
()
{
local
s files
[
-z
"
$source
"
]
&&
return
0
fetch
msg
"Updating the md5sums in APKBUILD..."
for
s
in
$source
;
do
...
...
@@ -607,6 +612,10 @@ options_has() {
list_has
"
$1
"
$options
}
depends_has
()
{
list_has
"
$1
"
$depends
}
md5sums_has
()
{
list_has
"
$1
"
$md5sums
}
...
...
Write
Preview
Markdown
is supported
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