EapiDefinition: handle impossible "%d" % None v2.2.0_alpha101
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Apr 2012 23:01:07 +0000 (16:01 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Apr 2012 23:01:07 +0000 (16:01 -0700)
pym/repoman/checks.py

index c3d110f888a0fd8b958418e9f0e550b5142cc8b0..ab4ddd9ec9bfe09f3513ff6f68280159c6372424 100644 (file)
@@ -1,5 +1,5 @@
 # repoman: Checks
-# Copyright 2007, 2011 Gentoo Foundation
+# Copyright 2007-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 """This module contains functions used in Repoman to ascertain the quality
@@ -308,11 +308,11 @@ class EapiDefinition(LineCheck):
        def end(self):
                if self._parsed_eapi is None:
                        if self._cached_eapi != "0":
-                               yield "valid EAPI assignment must occur on or before line: %d" % \
+                               yield "valid EAPI assignment must occur on or before line: %s" % \
                                        self._eapi_line_num
                elif self._parsed_eapi != self._cached_eapi:
                        yield ("bash returned EAPI '%s' which does not match "
-                               "assignment on line: %d") % \
+                               "assignment on line: %s") % \
                                (self._cached_eapi, self._eapi_line_num)
 
 class EbuildPatches(LineCheck):