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
4cd4463a
Unverified
Commit
4cd4463a
authored
2 years ago
by
Oliver Smith
Browse files
Options
Downloads
Patches
Plain Diff
ci: unreferenced: handle triggers from subpackages (MR 3386)
Depends: pmbootstrap MR 2202
parent
b0197417
Branches
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/testcases/test_unreferenced_files.py
+8
-4
8 additions, 4 deletions
.ci/testcases/test_unreferenced_files.py
with
8 additions
and
4 deletions
.ci/testcases/test_unreferenced_files.py
+
8
−
4
View file @
4cd4463a
...
...
@@ -66,19 +66,23 @@ def test_aports_unreferenced_files(args):
apkbuild
=
pmb
.
parse
.
apkbuild
(
apkbuild_path
)
sources_chk
=
parse_source_from_checksums
(
args
,
apkbuild_path
)
# Collect
install
files from subpackages
# Collect files from subpackages
subpackage_installs
=
[]
subpackage_triggers
=
[]
if
apkbuild
[
"
subpackages
"
]:
for
subpackage
in
apkbuild
[
"
subpackages
"
].
values
():
if
not
subpackage
:
continue
subpackage_installs
+=
subpackage
.
get
(
"
install
"
,
[])
subpackage_triggers
+=
subpackage
.
get
(
"
triggers
"
,
[])
print
(
subpackage_installs
)
if
"
device-nokia-n900-nonfree-firmware.post-install
"
in
subpackage_installs
:
print
(
subpackage
)
# Collect trigger files
trigger_sources
=
[]
if
apkbuild
[
"
triggers
"
]:
for
trigger
in
apkbuild
[
"
triggers
"
]:
trigger_sources
.
append
(
trigger
.
split
(
"
=
"
)[
0
])
for
trigger
in
apkbuild
[
"
triggers
"
]
+
subpackage_triggers
:
trigger_sources
.
append
(
trigger
.
split
(
"
=
"
)[
0
])
dirname
=
os
.
path
.
dirname
(
apkbuild_path
)
for
file
in
glob
.
iglob
(
dirname
+
"
/**
"
,
recursive
=
True
):
...
...
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