forked from Mirror/pmbootstrap
Revert "pmb: Make RunOutputTypeDefault and RunOutputTypePopen enums"
Revert the patch, as it breaks "pmbootstrap chroot".
This reverts commit 7d2f055bcb
.
This commit is contained in:
parent
ae0d162d31
commit
3ea5a3433b
20 changed files with 84 additions and 167 deletions
|
@ -17,7 +17,6 @@ import pmb.helpers.frontend
|
|||
import pmb.helpers.mount
|
||||
import pmb.parse.kconfig
|
||||
from pmb.core import Chroot, ChrootType
|
||||
from pmb.types import RunOutputTypeDefault
|
||||
|
||||
|
||||
def kernel(
|
||||
|
@ -193,9 +192,7 @@ def flash_lk2nd(
|
|||
pmb.flasher.init(deviceinfo.codename, method)
|
||||
logging.info("(native) checking current fastboot product")
|
||||
output = pmb.chroot.root(
|
||||
["fastboot", "getvar", "product"],
|
||||
output=RunOutputTypeDefault.INTERACTIVE,
|
||||
output_return=True,
|
||||
["fastboot", "getvar", "product"], output="interactive", output_return=True
|
||||
)
|
||||
# Variable "product" is e.g. "LK2ND_MSM8974" or "lk2nd-msm8226" depending
|
||||
# on the lk2nd version.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue