From 948d1c7cef176fe6e51a9aed18e6230f1f1a2817 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Sep 2011 19:48:25 +0200 Subject: [PATCH] dont build if no changes --- debian_build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian_build.py b/debian_build.py index 7a5d6c0..a3dd089 100755 --- a/debian_build.py +++ b/debian_build.py @@ -371,6 +371,10 @@ if __name__ == '__main__': ) logger.info('debian/changelog written') + if git_log.stdout == '': + logger.info('git log since yesterday is empty, aborting build.') + sys.exit(0) + # we need to commit here else git-buildpackage will use the existing debian/changelog... # TODO: Later we should investigate why the "--ignore-new" trick # did not work! -- 2.39.5