UBUNTU: [Packaging] update annotations scripts

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
This commit is contained in:
Mehmet Basaran
2025-06-15 10:34:06 +03:00
parent 8efdd9a8af
commit 71075d441a
3 changed files with 7 additions and 8 deletions
+1
View File
@@ -18,6 +18,7 @@ import sys
sys.dont_write_bytecode = True
import os # noqa: E402 Import not at top of file
from kconfig import run # noqa: E402 Import not at top of file
+1 -2
View File
@@ -6,10 +6,9 @@ import json
import re
import shutil
import tempfile
from abc import abstractmethod
from ast import literal_eval
from os.path import dirname, abspath
from os.path import abspath, dirname
from kconfig.version import ANNOTATIONS_FORMAT_VERSION
+5 -6
View File
@@ -2,11 +2,11 @@
# Manage Ubuntu kernel .config and annotations
# Copyright © 2022 Canonical Ltd.
import sys
import os
import argparse
import json
from signal import signal, SIGPIPE, SIG_DFL
import os
import sys
from signal import SIG_DFL, SIGPIPE, signal
try:
from argcomplete import autocomplete
@@ -17,9 +17,8 @@ except ModuleNotFoundError:
from kconfig.annotations import Annotation, KConfig # noqa: E402 Import not at top of file
from kconfig.utils import autodetect_annotations, arg_fail # noqa: E402 Import not at top of file
from kconfig.version import VERSION, ANNOTATIONS_FORMAT_VERSION # noqa: E402 Import not at top of file
from kconfig.utils import arg_fail, autodetect_annotations # noqa: E402 Import not at top of file
from kconfig.version import ANNOTATIONS_FORMAT_VERSION, VERSION # noqa: E402 Import not at top of file
SKIP_CONFIGS = (
# CONFIG_VERSION_SIGNATURE is dynamically set during the build