mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
WIP: 2024-06-05: args hacking and more (MR 2252)
Continue removing args and do some other optimisations. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
5bb2390d98
commit
de4c912692
52 changed files with 498 additions and 464 deletions
|
@ -1,6 +1,7 @@
|
|||
# Copyright 2023 Danct12 <danct12@disroot.org>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
from pathlib import Path
|
||||
from pmb.core.chroot import Chroot
|
||||
from pmb.helpers import logging
|
||||
import os
|
||||
|
||||
|
@ -17,12 +18,13 @@ def check(args: PmbArgs, pkgnames):
|
|||
|
||||
:param pkgnames: Names of the packages to lint
|
||||
"""
|
||||
pmb.chroot.apk.install(["atools"])
|
||||
chroot = Chroot.native()
|
||||
pmb.chroot.apk.install(["atools"], chroot)
|
||||
|
||||
# Mount pmaports.git inside the chroot so that we don't have to copy the
|
||||
# package folders
|
||||
pmaports = Path("/mnt/pmaports")
|
||||
pmb.build.mount_pmaports(args, pmaports)
|
||||
pmb.build.mount_pmaports(pmaports, chroot)
|
||||
|
||||
# Locate all APKBUILDs and make the paths be relative to the pmaports
|
||||
# root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue