Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
85cd8c96
Commit
85cd8c96
authored
Nov 29, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: improve sanitycheck to check sanity of all checksums
parent
630ec726
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
abuild.in
abuild.in
+11
-5
No files found.
abuild.in
View file @
85cd8c96
...
...
@@ -190,18 +190,24 @@ default_sanitycheck() {
warning
"You should not have
\$
install in source"
continue
fi
md5sums_has
${
i
##*/
}
||
die
"
${
i
##*/
}
is missing in md5sums"
list_has
${
i
##*/
}
$md5sums
$sha256sums
$sha512sums
\
||
die
"
${
i
##*/
}
is missing in checksums"
case
"
$i
"
in
https://
*
)
makedepends_has wget
&&
warning
"wget no longer need to be in makedepends when source has https://"
;;
esac
done
fi
if
[
-n
"
$md5sums
"
]
;
then
for
i
in
$(
echo
"
$md5sums
"
|
awk
'{ print $2 }'
)
;
do
source_has
$i
||
die
"
$i
exists in md5sums but is missing in source"
# verify that things listed in checksum also is listed in source
local
algo
=
for
algo
in
md5 sha256 sha512
;
do
eval set
--
\$
${
algo
}
sums
while
[
$#
-gt
1
]
;
do
local
file
=
"
$2
"
shift
2
source_has
$file
||
die
"
$file
exists in
${
algo
}
sums but is missing in source"
done
done
fi
# common spelling errors
[
-n
"
$depend
"
]
&&
die
"APKBUILD contains 'depend'. It should be depends"
...
...
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