]> git.proxmox.com Git - rustc.git/commitdiff
Fail the build if our version contains ~exp and we are not releasing to experimental
authorXimin Luo <infinity0@debian.org>
Wed, 25 Jul 2018 03:55:55 +0000 (20:55 -0700)
committerXimin Luo <infinity0@debian.org>
Wed, 25 Jul 2018 03:55:55 +0000 (20:55 -0700)
debian/changelog
debian/rules

index afae6a5527e0c724a59d59761578ac1ed2799153..45e91b892611f5a7759aaa043a9b96f3943d3bbc 100644 (file)
@@ -1,8 +1,13 @@
 rustc (1.27.1+dfsg1-1~exp5) UNRELEASED; urgency=medium
 
+  [ Sylvestre Ledru ]
   * Update of the alioth ML address.
 
- -- Sylvestre Ledru <sylvestre@debian.org>  Mon, 23 Jul 2018 12:09:25 +0200
+  [ Ximin Luo ]
+  * Fail the build if our version contains ~exp and we are not releasing to
+    experimental, this has happened by accident a few times already.
+
+ -- Ximin Luo <infinity0@debian.org>  Tue, 24 Jul 2018 20:55:35 -0700
 
 rustc (1.27.1+dfsg1-1~exp4) experimental; urgency=medium
 
index 16da263812a91d1a1d2d387380b635fb77d90db7..9616d5f9d5c8f746bee51d5d8db60cd535f65334 100755 (executable)
@@ -175,6 +175,8 @@ debian/rust-src.%: debian/rust-src.%.in
 override_dh_auto_configure: debian/config.toml
        # fail the build if we have any instances of OLD_LLVM_VERSION in debian, except for debian/changelog
        ! grep --color=always -i 'll...\?$(subst .,\.,$(OLD_LLVM_VERSION))' --exclude=changelog -R debian
+       # fail the build if our version contains ~exp and we are not releasing to experimental
+       v="$(DEB_VERSION)"; test "$$v" = "$${v%~exp*}" -o "$(DEB_DISTRIBUTION)" = "experimental"
        $(PRECONFIGURE_CHECK)
        if [ -d stage0 ]; then mkdir -p build && ln -sfT ../stage0 build/cache; fi
        # work around #842634