[OS-BUILD PATCHv2] redhat: add clog for new minor release to index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Frantisek Hrbata <fhrbata@xxxxxxxxxx>

redhat: add clog for new minor release to index

Bugzilla: INTERNAL
Upstream Status: RHEL only
Tested: bump minor and run dist-release

dist-release-changed target has a check if there is any change between
worktree and index. If not, it exits with "Nothing changed, skipping updates".
Since the new file e.g. redhat/kernel.changelog-9.2 is not in the index yet,
because it's added after the check in the dist-release-finish target,
the check is bogus in this case. Note it's not looking at local vs
remote changes. Fix this just by adding the new changelog to index when
it's copied.

Signed-off-by: Frantisek Hrbata <fhrbata@xxxxxxxxxx>

diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -468,6 +468,7 @@ _setup-source: dist-git-version-check
 	@if [ ! -e  $(REDHAT)/$(SPECCHANGELOG) ]; then \
 		echo "Creating $(SPECCHANGELOG) as copy of $(CHANGELOG_PREV)"; \
 		cp $(REDHAT)/$(CHANGELOG_PREV) $(REDHAT)/$(SPECCHANGELOG); \
+		$(GIT) add $(REDHAT)/$(SPECCHANGELOG); \
 	fi
 	@if [ -z "$(RHSELFTESTDATA)" ]; then \
 		cp $(REDHAT)/$(SPECCHANGELOG) $(SOURCES)/$(SPECCHANGELOG); \

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2012
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux