Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
pmbootstrap
Commits
8aa3b034
Verified
Commit
8aa3b034
authored
5 months ago
by
Newbyte
Committed by
Newbyte
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
pmb.chroot.apk: Type hint package list in packages_get_locally_built_apks (MR 2425)
parent
71772b9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2425
pmb.parse.apkindex: Introduce proper typing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pmb/chroot/apk.py
+2
-2
2 additions, 2 deletions
pmb/chroot/apk.py
with
2 additions
and
2 deletions
pmb/chroot/apk.py
+
2
−
2
View file @
8aa3b034
...
...
@@ -126,7 +126,7 @@ def packages_split_to_add_del(packages):
return
(
to_add
,
to_del
)
def
packages_get_locally_built_apks
(
package
s
,
arch
:
Arch
)
->
list
[
Path
]:
def
packages_get_locally_built_apks
(
package
_list
:
list
[
str
]
,
arch
:
Arch
)
->
list
[
Path
]:
"""
Iterate over packages and if existing, get paths to locally built packages.
This is used to force apk to upgrade packages to newer local versions, even
...
...
@@ -141,7 +141,7 @@ def packages_get_locally_built_apks(packages, arch: Arch) -> list[Path]:
channels
:
list
[
str
]
=
pmb
.
config
.
pmaports
.
all_channels
()
local
:
list
[
Path
]
=
[]
packages
=
set
(
package
s
)
packages
=
set
(
package
_list
)
walked
:
set
[
str
]
=
set
()
while
len
(
packages
):
...
...
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