From 8ff80b0be29f2689c57513bc7d3d02345e0e0eb4 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 26 Mar 2018 14:07:45 -0700 Subject: [PATCH] Sync options for 'autospec' and 'autospecnew' commands Over time, the autospec options used for 'autospec' and 'autospecnew' commands have diverged. They are meant to be in sync, so do that here, and format the recipe in a way that eases future changes. Signed-off-by: Patrick McCarty --- Makefile.common | 15 ++++++++++----- Makefile.toplevel | 11 ++++++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Makefile.common b/Makefile.common index f351632..05ca3cd 100644 --- a/Makefile.common +++ b/Makefile.common @@ -159,11 +159,16 @@ autospec: pullrebase localreponotice exit 1; \ fi @printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(PKG_NAME) '$(firstword $(value NEWURL) $(value URL))' '$(value ARCHIVES)' > Makefile - python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \ - ${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \ - $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \ - $${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES) \ - -m $(MOCK_CONFIG_VAL) + python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \ + --target . \ + --integrity \ + --config "$(AUTOSPEC_CONF)" \ + --name $(PKG_NAME) \ + --archives $(ARCHIVES) \ + --mock-config $(MOCK_CONFIG_VAL) \ + $${SETVERSION:+ --version $${SETVERSION}} \ + ${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \ + $(firstword $(NEWURL) $(URL)); @$(MAKE) spdxcheck @$(MAKE) checkblacklist @if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \ diff --git a/Makefile.toplevel b/Makefile.toplevel index b74b704..86d928c 100644 --- a/Makefile.toplevel +++ b/Makefile.toplevel @@ -208,7 +208,16 @@ autospecnew: localreponotice $(call subjectprefix,$(NAME)); \ ); \ printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' '$(value ARCHIVES)' > $(TOPLVL)/packages/$(NAME)/Makefile; \ - python3 $(TOPLVL)/projects/autospec/autospec/autospec.py --integrity -t packages/$(NAME) --config $(AUTOSPEC_CONF) $(URL) --name $(NAME) -m $(MOCK_CONFIG_VAL); \ + python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \ + --target packages/$(NAME) \ + --integrity \ + --config "$(AUTOSPEC_CONF)" \ + --name $(NAME) \ + --archives $(ARCHIVES) \ + --mock-config $(MOCK_CONFIG_VAL) \ + $${SETVERSION:+ --version $${SETVERSION}} \ + ${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \ + $(URL); \ $(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \ else \ echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \