]> 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:51:41 +0000 (18:51 +0100)
committerHolger Levsen <holger@layer-acht.org>
Mon, 14 Jan 2013 17:51:41 +0000 (18:51 +0100)
debian_build.py

index 794beee01f07ecc007664dba08f06eb7928f9fb2..c38dd205006b316d5f0c1a91e0fec8aca9d82f0f 100755 (executable)
@@ -381,7 +381,7 @@ if __name__ == '__main__':
     logger.info('Package distribution is %s' % (distribution))
 
     section_error=False
-    for line in fileinput.input('debian/changelog'):
+    for line in fileinput.input('debian/control'):
         if line.lower() == 'section: unknown':
             logger.error('debian/control sets "section" to unknown. This is not allowed, failing...')
             section_error=True