Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Unified Diff: third_party/buildbot_7_12/buildbot/steps/package/rpm/rpmlint.py

Issue 12207158: Bye bye buildbot 0.7.12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/buildbot_7_12/buildbot/steps/package/rpm/rpmlint.py
diff --git a/third_party/buildbot_7_12/buildbot/steps/package/rpm/rpmlint.py b/third_party/buildbot_7_12/buildbot/steps/package/rpm/rpmlint.py
deleted file mode 100644
index 444a44a2637ff9701b14933057ebc54aaf58feb4..0000000000000000000000000000000000000000
--- a/third_party/buildbot_7_12/buildbot/steps/package/rpm/rpmlint.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# Steve 'Ashcrow' Milner <smilner+buildbot@redhat.com>
-#
-# This software may be freely redistributed under the terms of the GNU
-# general public license.
-#
-# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
-"""
-Steps and objects related to rpmlint.
-"""
-
-from buildbot.steps.shell import Test
-
-
-class RpmLint(Test):
- """
- Rpmlint build step.
- """
-
- description = ["Checking for RPM/SPEC issues"]
- descriptionDone = ["Finished checking RPM/SPEC issues"]
-
- def __init__(self, fileloc="*rpm", **kwargs):
- """
- Create the Rpmlint object.
-
- @type fileloc: str
- @param fileloc: Location glob of the specs or rpms.
- @type kwargs: dict
- @param fileloc: all other keyword arguments.
- """
- Test.__init__(self, **kwargs)
- self.command = ["/usr/bin/rpmlint", "-i"]
- self.command.append(fileloc)
-
- def createSummary(self, log):
- """
- Create nice summary logs.
-
- @param log: log to create summary off of.
- """
- warnings = []
- errors = []
- for line in log.readlines():
- if ' W: ' in line:
- warnings.append(line)
- elif ' E: ' in line:
- errors.append(line)
- self.addCompleteLog('Rpmlint Warnings', "".join(warnings))
- self.addCompleteLog('Rpmlint Errors', "".join(errors))

Powered by Google App Engine
This is Rietveld 408576698