[Git][NTPsec/ntpsec][master] Ensure "waf configure --build-epoch=0" works
Matt Selsky
gitlab at mg.gitlab.com
Sat Mar 10 06:00:09 UTC 2018
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
abff8c15 by Matt Selsky at 2018-03-10T05:55:54Z
Ensure "waf configure --build-epoch=0" works
Test for None explicitly, otherwise python tests for non-zero
- - - - -
1 changed file:
- wscript
Changes:
=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -852,7 +852,7 @@ int main(int argc, char **argv) {
msg("WARNING: Your ntpd will fail on 2038-01-19T03:14:07Z.")
source_date_epoch = os.getenv('SOURCE_DATE_EPOCH', None)
- if ctx.options.build_epoch:
+ if ctx.options.build_epoch is not None:
ctx.define("BUILD_EPOCH", ctx.options.build_epoch,
comment="Using --build-epoch")
elif source_date_epoch:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/abff8c1522f57acd62e810724976fcfa7331c6d4
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/abff8c1522f57acd62e810724976fcfa7331c6d4
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180310/bd96ddfc/attachment.html>
More information about the vc
mailing list