]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use '-' instead of '.' to separate upstream version and debian revision
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Apr 2024 09:19:22 +0000 (11:19 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Apr 2024 10:31:34 +0000 (12:31 +0200)
The debian revision starts after the '-' character, so make sure the
timestamp we append is treated as the revision instead of being a part
of the upstream version.

mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.build.chroot

index 106b8ed4e6ce1acf070114d559e96a75bce2df90..e5224b87289587c1d2df77c491d436aa5bfc5790 100755 (executable)
@@ -28,7 +28,7 @@ fi
 # Add a new changelog entry to update the version. We use a fixed date since a dynamic one causes a full
 # rebuild every time.
 cat >debian/changelog.new <<EOF
-systemd ($(cat meson.version).$(date "+%Y%m%d%H%M%S" --date "@$TS")) UNRELEASED; urgency=low
+systemd ($(cat meson.version)-$(date "+%Y%m%d%H%M%S" --date "@$TS")) UNRELEASED; urgency=low
 
   * Automatic build from mkosi