mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 19:39:51 +03:00
Gracefully handle packages breaking because of soname bumps (#1116)
Fixes #893. Changes: * New action: "pmbootstrap pkgrel_bump" * pmbootstrap detects missing soname depends when trying to install anyting, and suggests "pkgrel_bump --auto" to fix it * Testcase test_soname_bump.py checks the pmOS binary package repo for soname breakage, so we see it when CI runs for new PRs * libsamsung-ipc: bump pkgrel because of soname bump
This commit is contained in:
parent
219aee8ab7
commit
1992f37036
12 changed files with 537 additions and 6 deletions
|
@ -36,6 +36,7 @@ import pmb.chroot.other
|
|||
import pmb.flasher
|
||||
import pmb.helpers.logging
|
||||
import pmb.helpers.other
|
||||
import pmb.helpers.pkgrel_bump
|
||||
import pmb.helpers.repo
|
||||
import pmb.helpers.run
|
||||
import pmb.install
|
||||
|
@ -252,6 +253,24 @@ def parse_apkindex(args):
|
|||
print(json.dumps(result, indent=4))
|
||||
|
||||
|
||||
def pkgrel_bump(args):
|
||||
would_bump = True
|
||||
if args.auto:
|
||||
would_bump = pmb.helpers.pkgrel_bump.auto(args, args.dry)
|
||||
else:
|
||||
# Each package must exist
|
||||
for package in args.packages:
|
||||
pmb.build.other.find_aport(args, package)
|
||||
|
||||
# Increase pkgrel
|
||||
for package in args.packages:
|
||||
pmb.helpers.pkgrel_bump.package(args, package, dry=args.dry)
|
||||
|
||||
if args.dry and would_bump:
|
||||
logging.info("Pkgrels of package(s) would have been bumped!")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def qemu(args):
|
||||
pmb.qemu.run(args)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue