From 7da41d699b0193dc93e0d9f2b7b5a24dae3c7af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Thu, 6 Jun 2013 14:45:05 +0200 Subject: [PATCH] warn when no %changelog section is present --- src/tito/tagger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tito/tagger.py b/src/tito/tagger.py index f552424..5715954 100644 --- a/src/tito/tagger.py +++ b/src/tito/tagger.py @@ -264,6 +264,9 @@ class VersionTagger(ConfigObject): file.close() os.unlink(name) + if not found_changelog: + print("WARNING: no %changelog section find in spec file. Changelog entry was not appended.") + in_f.close() out_f.close()