31 lines
924 B
Diff
31 lines
924 B
Diff
From 487b820a2def69324f676267feef79dc3a41306d Mon Sep 17 00:00:00 2001
|
|
From: Jan Zerebecki <jan.suse@zerebecki.de>
|
|
Date: Thu, 15 Feb 2024 08:03:05 +0100
|
|
Subject: [PATCH 3/3] Error out on a missing changelog date
|
|
|
|
if it is needed as the source for SOURCE_DATE_EPOCH, instead of only
|
|
logging a warning.
|
|
---
|
|
build/build.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/build/build.c b/build/build.c
|
|
index 54bac2e76..0292b9c4a 100644
|
|
--- a/build/build.c
|
|
+++ b/build/build.c
|
|
@@ -321,8 +321,10 @@ static rpmRC buildSpec(rpmts ts, BTA_t buildArgs, rpmSpec spec, int what)
|
|
setenv("SOURCE_DATE_EPOCH", sdestr, 0);
|
|
rpmtdFreeData(&td);
|
|
} else {
|
|
- rpmlog(RPMLOG_WARNING, _("source_date_epoch_from_changelog set but "
|
|
+ rpmlog(RPMLOG_ERR, _("source_date_epoch_from_changelog set but "
|
|
"%%changelog is missing\n"));
|
|
+ rc = RPMRC_FAIL;
|
|
+ goto exit;
|
|
}
|
|
}
|
|
|
|
--
|
|
2.45.2
|
|
|