From 1729603894dc23ae5f85065626e29e02a79a0593 Mon Sep 17 00:00:00 2001 From: softwarefactory-project-zuul Date: Wed, 1 May 2024 00:58:24 +0000 Subject: [PATCH 1/2] Update constants --- specfile/constants.py | 92 +------------------------------------------ 1 file changed, 2 insertions(+), 90 deletions(-) diff --git a/specfile/constants.py b/specfile/constants.py index 505271c..a780fba 100644 --- a/specfile/constants.py +++ b/specfile/constants.py @@ -3,43 +3,7 @@ # valid section names as defined in build/parseSpec.c in RPM source SECTION_NAMES = { - "build", - "changelog", - "check", - "clean", - "conf", - "description", - "end", - "files", - "filetrigger", - "filetriggerin", - "filetriggerpostun", - "filetriggerun", - "generate_buildrequires", - "install", - "package", - "patchlist", - "post", - "posttrans", - "postun", - "postuntrans", - "pre", - "prep", - "pretrans", - "preun", - "preuntrans", - "sepolicy", - "sourcelist", - "transfiletrigger", - "transfiletriggerin", - "transfiletriggerpostun", - "transfiletriggerun", - "trigger", - "triggerin", - "triggerpostun", - "triggerprein", - "triggerun", - "verifyscript", + } SIMPLE_SCRIPT_SECTIONS = { @@ -89,59 +53,7 @@ # valid tag names as defined in build/parsePreamble.c in RPM source TAG_NAMES = { - "autoprov", - "autoreq", - "autoreqprov", - "bugurl", - "buildarch", - "buildarchitectures", - "buildconflicts", - "buildoption", - "buildprereq", - "buildrequires", - "buildroot", - "buildsystem", - "conflicts", - "distribution", - "disttag", - "disturl", - "docdir", - "enhances", - "epoch", - "excludearch", - "excludeos", - "exclusivearch", - "exclusiveos", - "group", - "icon", - "license", - "modularitylabel", - "name", - "nopatch", - "nosource", - "obsoletes", - "orderwithrequires", - "packager", - "patch", - "prefix", - "prefixes", - "prereq", - "provides", - "recommends", - "release", - "removepathpostfixes", - "requires", - "source", - "sourcelicense", - "suggests", - "summary", - "supplements", - "translationurl", - "upstreamreleases", - "url", - "vcs", - "vendor", - "version", + } # tags that can optionally have an argument (language or qualifier) From d95490edeb130834ef490dd658b1c8b5b55710b8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 00:58:59 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- specfile/constants.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/specfile/constants.py b/specfile/constants.py index a780fba..fd7f1e2 100644 --- a/specfile/constants.py +++ b/specfile/constants.py @@ -2,9 +2,7 @@ # SPDX-License-Identifier: MIT # valid section names as defined in build/parseSpec.c in RPM source -SECTION_NAMES = { - -} +SECTION_NAMES = {} SIMPLE_SCRIPT_SECTIONS = { "build", @@ -52,9 +50,7 @@ SECTION_OPTIONS.update({s: "n:f:p:P:eq" for s in SCRIPT_SECTIONS}) # valid tag names as defined in build/parsePreamble.c in RPM source -TAG_NAMES = { - -} +TAG_NAMES = {} # tags that can optionally have an argument (language or qualifier) TAGS_WITH_ARG = {