Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 306336df authored by Aayush Gupta's avatar Aayush Gupta Committed by Aayush Gupta
Browse files

2e: releasetools: Address PEP8 warnings

- Dropped unused 're' import
- Addred required blank lines
- Fixed indentation

References:
[0]: https://www.python.org/dev/peps/pep-0008/#blank-lines
[1]: https://www.python.org/dev/peps/pep-0008/#indentation



Signed-off-by: default avatarAayush Gupta <aayushgupta219@gmail.com>
Change-Id: I0316386ffee860a9859968df1cea30d049adf68c
parent 6466b18c
Loading
Loading
Loading
Loading
+20 −18
Original line number Diff line number Diff line
# Copyright (C) 2009 The Android Open Source Project
# Copyright (C) 2019 The Mokee Open Source Project
# Copyright (C) 2019 The LineageOS Open Source Project
# Copyright (C) 2019-2020 The LineageOS Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,14 +15,16 @@
# limitations under the License.

import common
import re


def FullOTA_InstallEnd(info):
    OTA_InstallEnd(info, False)


def IncrementalOTA_InstallEnd(info):
    OTA_InstallEnd(info, True)


def AddImage(info, basename, dest, incremental):
    name = basename
    if incremental:
@@ -34,9 +36,9 @@ def AddImage(info, basename, dest, incremental):
    info.script.Print("Patching {} image unconditionally...".format(dest.split('/')[-1]))
    info.script.AppendExtra('package_extract_file("%s", "%s");' % (name, dest))


def OTA_InstallEnd(info, incremental):
    AddImage(info, "dtbo.img", "/dev/block/platform/bootdevice/by-name/dtbo", incremental)
    AddImage(info, "vbmeta.img", "/dev/block/platform/bootdevice/by-name/vbmeta", incremental)
    AddImage(info, "vbmeta_system.img", "/dev/block/platform/bootdevice/by-name/vbmeta_system", incremental)
    AddImage(info, "vbmeta_vendor.img", "/dev/block/platform/bootdevice/by-name/vbmeta_vendor", incremental)
  return