From 519395247f67e23857715949dc6e54b10146ea64 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Thu, 25 Feb 2016 10:44:18 -0800 Subject: packaging: Note if there are uncommitted changes when trying to make a release (bzr r14667) --- packaging/release-sign-tarballs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packaging/release-sign-tarballs b/packaging/release-sign-tarballs index 632fdac60..1c895d877 100755 --- a/packaging/release-sign-tarballs +++ b/packaging/release-sign-tarballs @@ -61,8 +61,18 @@ HELP #------------------------------------------------------------------------------ check_local_changes() { - # TODO - return 1 + lines=$(bzr diff | wc -l) + if [ $lines -gt 0 ]; then + echo "" + echo "Uncommitted changes found. Did you forget to commit? Aborting." + echo "" + echo "You can clone the module in another directory" + echo "and run ./configure. No need to build if testing was finished." + echo "" + return 1 + fi + + return 0 } #------------------------------------------------------------------------------ -- cgit v1.2.3