"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/steps/package/rpm/rpmlint.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

rpmlint.py  (buildbot-3.0.2):rpmlint.py  (buildbot-3.1.0)
skipping to change at line 20 skipping to change at line 20
# You should have received a copy of the GNU General Public License along with # You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51 # this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# #
# Portions Copyright Buildbot Team Members # Portions Copyright Buildbot Team Members
# Portions Copyright Steve 'Ashcrow' Milner <smilner+buildbot@redhat.com> # Portions Copyright Steve 'Ashcrow' Milner <smilner+buildbot@redhat.com>
""" """
Steps and objects related to rpmlint. Steps and objects related to rpmlint.
""" """
from twisted.internet import defer
from buildbot.steps.package import util as pkgutil from buildbot.steps.package import util as pkgutil
from buildbot.steps.shell import Test from buildbot.steps.shell import Test
class RpmLint(Test): class RpmLint(Test):
""" """
Rpmlint build step. Rpmlint build step.
""" """
name = "rpmlint" name = "rpmlint"
skipping to change at line 65 skipping to change at line 67
self.config = config self.config = config
self.command = ["rpmlint", "-i"] self.command = ["rpmlint", "-i"]
if self.config: if self.config:
self.command += ['-f', self.config] self.command += ['-f', self.config]
self.command.append(self.fileloc) self.command.append(self.fileloc)
self.obs = pkgutil.WEObserver() self.obs = pkgutil.WEObserver()
self.addLogObserver('stdio', self.obs) self.addLogObserver('stdio', self.obs)
@defer.inlineCallbacks
def createSummary(self): def createSummary(self):
""" """
Create nice summary logs. Create nice summary logs.
@param log: log to create summary off of. @param log: log to create summary off of.
""" """
warnings = self.obs.warnings warnings = self.obs.warnings
errors = [] errors = []
if warnings: if warnings:
self.addCompleteLog('%d Warnings' % len(warnings), "\n".join(warning s)) yield self.addCompleteLog('%d Warnings' % len(warnings), "\n".join(w arnings))
if errors: if errors:
self.addCompleteLog('%d Errors' % len(errors), "\n".join(errors)) yield self.addCompleteLog('%d Errors' % len(errors), "\n".join(error s))
 End of changes. 4 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)