Skip to content

Commit 277ee4c

Browse files
authored
Merge pull request #1102 from bmwiedemann/fulltimestamp
Add BuildFlags for changelogfulltimestamps
2 parents 313afd1 + e57075b commit 277ee4c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build-recipe

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,12 @@ recipe_create_changelog() {
263263
*/*[1-9]*) CFFORMAT="$CFFORMAT --emailonly" ;;
264264
esac
265265
fi
266-
echo "running changelog2spec --target $CFFORMAT --file $1"
267-
if ! $BUILD_DIR/changelog2spec --target $CFFORMAT --timestampfile "$BUILD_ROOT/.build-changelog-timestamp" --file "$1" > $BUILD_ROOT/.build-changelog ; then
266+
changelog2specargs="--target $CFFORMAT"
267+
if [ "$(queryconfig --dist "$BUILD_DIST" --configdir "$CONFIG_DIR" --archpath "$BUILD_ARCH" buildflags changelogfulltimestamps)" = 1 ] ; then
268+
changelog2specargs="--fulltimestamps $changelog2specargs"
269+
fi
270+
echo "running changelog2spec $changelog2specargs --file $1"
271+
if ! $BUILD_DIR/changelog2spec $changelog2specargs --timestampfile "$BUILD_ROOT/.build-changelog-timestamp" --file "$1" > $BUILD_ROOT/.build-changelog ; then
268272
rm -f $BUILD_ROOT/.build-changelog $BUILD_ROOT/.build-changelog-timestamp
269273
fi
270274
BUILD_CHANGELOG_TIMESTAMP=

0 commit comments

Comments
 (0)