Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
monitoring
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
Package registry
Container 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
monitoring
Commits
bceede68
Commit
bceede68
authored
6 months ago
by
Luca Weiss
Browse files
Options
Downloads
Patches
Plain Diff
test_upstream_compat: Reformat with ruff
Reflow the long string at the end manually
parent
4e948c6a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test_upstream_compat.py
+19
-21
19 additions, 21 deletions
test_upstream_compat.py
with
19 additions
and
21 deletions
test_upstream_compat.py
+
19
−
21
View file @
bceede68
...
...
@@ -15,9 +15,7 @@ import pmb.parse
@pytest.fixture
def
args
(
request
):
# Initialize args
sys
.
argv
=
[
"
pmbootstrap
"
,
"
--aports
"
,
os
.
environ
[
"
PMAPORTS
"
],
"
chroot
"
]
sys
.
argv
=
[
"
pmbootstrap
"
,
"
--aports
"
,
os
.
environ
[
"
PMAPORTS
"
],
"
chroot
"
]
args
=
pmb
.
parse
.
arguments
()
# Initialize logging
...
...
@@ -33,8 +31,7 @@ def test_qt_versions(args):
"""
# Upstream version
index
=
pmb
.
helpers
.
repo
.
alpine_apkindex_path
(
args
,
"
community
"
,
"
x86_64
"
)
index_data
=
pmb
.
parse
.
apkindex
.
package
(
args
,
"
qt5-qtbase
"
,
indexes
=
[
index
])
index_data
=
pmb
.
parse
.
apkindex
.
package
(
args
,
"
qt5-qtbase
"
,
indexes
=
[
index
])
pkgver_upstream
=
index_data
[
"
version
"
].
split
(
"
-r
"
)[
0
]
# Iterate over our packages
...
...
@@ -73,19 +70,20 @@ def test_aportgen_versions(args):
index
=
pmb
.
helpers
.
repo
.
alpine_apkindex_path
(
args
,
"
main
"
,
"
x86_64
"
)
# Alpine packages and patterns for our derivatives
map
=
{
"
binutils
"
:
"
binutils-*
"
,
"
busybox
"
:
"
busybox-static-*
"
,
"
gcc
"
:
"
gcc-*
"
,
"
grub
"
:
"
grub-efi-*
"
,
"
musl
"
:
"
musl-*
"
}
map
=
{
"
binutils
"
:
"
binutils-*
"
,
"
busybox
"
:
"
busybox-static-*
"
,
"
gcc
"
:
"
gcc-*
"
,
"
grub
"
:
"
grub-efi-*
"
,
"
musl
"
:
"
musl-*
"
,
}
# Iterate over Alpine packages
failed
=
[]
generated
=
"
# Automatically generated aport, do not edit!
"
for
pkgname
,
pattern
in
map
.
items
():
# Upstream version
index_data
=
pmb
.
parse
.
apkindex
.
package
(
args
,
pkgname
,
indexes
=
[
index
])
index_data
=
pmb
.
parse
.
apkindex
.
package
(
args
,
pkgname
,
indexes
=
[
index
])
version_upstream
=
index_data
[
"
version
"
]
# Iterate over our packages
...
...
@@ -109,13 +107,13 @@ def test_aportgen_versions(args):
def
test_soname_bump
(
args
):
"""
Use pmb.helpers.pkgrel_bump to check if the pmaports need a pkgrel bump
caused by a soname bump in Alpine. Example: a new openssl version was
released, which increased the soname version, and now all packages that
link against it, need to be rebuilt.
"""
"""
Use pmb.helpers.pkgrel_bump to check if the pmaports need a pkgrel bump
caused by a soname bump in Alpine. Example: a new openssl version was
released, which increased the soname version, and now all packages that
link against it, need to be rebuilt.
"""
if
pmb
.
helpers
.
pkgrel_bump
.
auto
(
args
,
True
):
raise
RuntimeError
(
"
One or more packages need to be rebuilt, because
"
"
a library they link against had an
incompatible
"
"
upgrade (soname bump). Run
'
pmbootstrap
"
"
pkgrel_bump --auto
'
to automatically increase the
"
"
pkgrel in order to trigger a rebuild.
"
)
raise
RuntimeError
(
"
One or more packages need to be rebuilt, because
a library they link against had an
"
"
incompatible
upgrade (soname bump). Run
'
pmbootstrap
pkgrel_bump --auto
'
to
"
"
automatically increase the pkgrel in order to trigger a rebuild.
"
)
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