Overview

Request 843657 superseded

Allow to override build date with SOURCE_DATE_EPOCH (boo#1047218)

Loading...

jenting hsiao's avatar

The date macro should use %%, otherwise, %S would be converted to rpm macro OURCE. Ref to: https://stackoverflow.com/questions/40396945/date-command-is-giving-erroneous-output-while-using-inside-rpm-spec-file

was time=$(date -d@${SOURCE_DATE_EPOCH:-$(date +%s)} +%Y-%m-%dT%H:%M:%S) to time=$(date -d@${SOURCE_DATE_EPOCH:-$(date +%s)} +%%Y-%%m-%%dT%%H:%%M:%%S)

Request History
Bernhard Wiedemann's avatar

bmwiedemann created request

Allow to override build date with SOURCE_DATE_EPOCH (boo#1047218)


Bernhard Wiedemann's avatar

bmwiedemann superseded request

superseded by 844135

openSUSE Build Service is sponsored by