]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fixup: correctly fail build on unknown sections
authorHolger Levsen <holger@layer-acht.org>
Mon, 14 Jan 2013 17:59:26 +0000 (18:59 +0100)
committerHolger Levsen <holger@layer-acht.org>
Mon, 14 Jan 2013 17:59:26 +0000 (18:59 +0100)
debian_build.py

index c38dd205006b316d5f0c1a91e0fec8aca9d82f0f..b0e954ababa005533aff1b7db0aabe775efc9265 100755 (executable)
@@ -382,7 +382,7 @@ if __name__ == '__main__':
 
     section_error=False
     for line in fileinput.input('debian/control'):
-        if line.lower() == 'section: unknown':
+        if line.lower().startswith('section: unknown'):
             logger.error('debian/control sets "section" to unknown. This is not allowed, failing...')
             section_error=True
     if section_error: