diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-08-26 13:08:25 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-08-26 15:22:29 +0200 |
commit | caf5eb586afa1a71ed04a3442585536930b150c2 (patch) | |
tree | e2f3d03f66bddf7f45abc471af155ec9e21a1ebc /mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot | |
parent | Merge pull request #34117 from yuwata/network-routing-policy-rule (diff) | |
download | systemd-caf5eb586afa1a71ed04a3442585536930b150c2.tar.xz systemd-caf5eb586afa1a71ed04a3442585536930b150c2.zip |
mkosi: Stop using git commit timestamps for package releases
This prevents bisecting to figure out which commit broke something
as when going backwards the git commit timestamp will be older meaning
package managers will refuse to upgrade to the "older" version. Let's
make sure the release is always newer by using the current date unless
$SOURCE_DATE_EPOCH is set.
Diffstat (limited to '')
-rwxr-xr-x | mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot index a1fb83cdd9..173468f6c1 100755 --- a/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot +++ b/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot @@ -9,11 +9,7 @@ if [[ ! -f "pkg/$PKG_SUBDIR/systemd.spec" ]]; then exit 1 fi -if [[ -d .git/ ]] && [[ -z "$(git status --porcelain)" ]]; then - TS="$(git show --no-patch --format=%ct HEAD)" -else - TS="${SOURCE_DATE_EPOCH:-$(date +%s)}" -fi +TS="${SOURCE_DATE_EPOCH:-$(date +%s)}" # The openSUSE filelists hardcode the manpage compression extension. This causes rpmbuild errors since we # disable manpage compression as the files cannot be found. Fix the issue by removing the compression |