Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
aa77b065
Verified
Commit
aa77b065
authored
5 months ago
by
Clayton Craft
Browse files
Options
Downloads
Patches
Plain Diff
DO NOT MERGE: ci: use pmb.build.checksum
parent
c76c29dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/lib/build_changed_aports.py
+11
-3
11 additions, 3 deletions
.ci/lib/build_changed_aports.py
with
11 additions
and
3 deletions
.ci/lib/build_changed_aports.py
+
11
−
3
View file @
aa77b065
...
...
@@ -14,6 +14,8 @@ import pmb.core
import
pmb.parse
import
pmb.parse._apkbuild
import
pmb.helpers.pmaports
# import pmb.helpers.frontend
import
pmb.build.checksum
from
pmb.core.context
import
get_context
...
...
@@ -36,10 +38,16 @@ def verify_checksums(packages, arch):
print
(
"
no packages changed, not doing any checksums verification
"
)
return
common
.
run_pmbootstrap
([
"
build_init
"
])
common
.
run_pmbootstrap
([
"
--details-to-stdout
"
,
"
checksum
"
,
"
--verify
"
]
+
list
(
packages
))
fail
=
False
for
pkgname
in
packages
:
try
:
pmb
.
build
.
checksum
.
verify
(
pkgname
)
except
RuntimeError
:
print
(
f
"
FAIL:
{
pkgname
}
checksum is incorrect
"
)
fail
=
True
if
fail
:
sys
.
exit
(
1
)
if
__name__
==
"
__main__
"
:
# Architecture to build for (as in build-{arch})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment