aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages/BUILD
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-12-20 07:47:35 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-12-20 09:41:18 +0000
commit332b61f416855eb5938a226eed7787473487a268 (patch)
treee9cdb8a7f2dc34218764a3259c9648ece11cbb57 /scripts/packages/BUILD
parent55c97bcf9b99916a3fe59295be64c4aee860d823 (diff)
Revert "Revert "Fix scripts/packages/convert_changelog to read the changelog correctly""
Roll-forward with fix: the original change did not produced any changelog if this was not a release branch, use a default, empty one in that case. The debian version number will then be LAST_VERSION~HEAD This reverts commit e4cf9aa8b63173326cfe72ba76be4303bc038def. -- Change-Id: I9e19b1132570ea20d90053734418f2703b1a641e Reviewed-on: https://cr.bazel.build/7976 PiperOrigin-RevId: 142525180 MOS_MIGRATED_REVID=142525180
Diffstat (limited to 'scripts/packages/BUILD')
-rw-r--r--scripts/packages/BUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/packages/BUILD b/scripts/packages/BUILD
index f324e3a3e9..2e5202152f 100644
--- a/scripts/packages/BUILD
+++ b/scripts/packages/BUILD
@@ -187,9 +187,11 @@ genrule(
srcs = [
"convert_changelog.py",
"//:changelog-file",
+ "//:bazel-srcs", # Force a rebuild on source change
],
outs = ["changelog"],
- cmd = "python $(location convert_changelog.py) $(location //:changelog-file) $(location changelog)",
+ cmd = "python $(location convert_changelog.py) bazel-out/volatile-status.txt $(location //:changelog-file) $(location changelog)",
+ stamp = 1,
)
genrule(