Skip to content

Commit

Permalink
Some bugfixes.
Browse files Browse the repository at this point in the history
Add buildbot.steps.package.dep to install list.
Add components to UbuPbuilder.
  • Loading branch information
jiuka committed Jul 27, 2012
1 parent 443f3dd commit bb11c4a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions master/buildbot/steps/package/deb/lintian.py
Expand Up @@ -17,10 +17,10 @@
Steps and objects related to lintian
"""

from buildbot.steps.shell import Test
from buildbot.steps.shell import WarningCountingShellCommand
from buildbot import config

class DebLintian(Test):
class DebLintian(WarningCountingShellCommand):
name = "lintian"
description = ["Lintian running"]
descriptionDone = ["Lintian"]
Expand All @@ -41,7 +41,7 @@ def __init__(self, fileloc=None, suppressTags=None, **kwargs):
@type kwargs: dict
@param kwargs: all other keyword arguments.
"""
Test.__init__(self, **kwargs)
WarningCountingShellCommand.__init__(self, **kwargs)
if fileloc:
self.fileloc = fileloc
if suppressTags:
Expand Down
4 changes: 3 additions & 1 deletion master/buildbot/steps/package/deb/pbuilder.py
Expand Up @@ -134,7 +134,7 @@ def checkBasetgz(self, cmd):
if self.extrapackages:
command += ['--extrapackages', " ".join(self.extrapackages)]
if self.keyring:
command += ['--debootstrapopt', "--keyring=%s"%self.keyring]
command += ['--debootstrapopts', "--keyring=%s"%self.keyring]
if self.components:
command += ['--components', self.components]

Expand Down Expand Up @@ -192,6 +192,8 @@ class UbuPbuilder(DebPbuilder):
"""Build a Ubuntu package with pbuilder inside of a chroot."""
mirror = "http://archive.ubuntu.com/ubuntu/"

components = "main universe"

class UbuCowbuilder(DebCowbuilder):
"""Build a Ubuntu package with cowbuilder inside of a chroot."""
mirror = "http://archive.ubuntu.com/ubuntu/"
Expand Down
5 changes: 3 additions & 2 deletions master/buildbot/test/unit/test_steps_package_deb_pbuilder.py
Expand Up @@ -191,7 +191,7 @@ def test_keyring(self):
'--basetgz', '/var/cache/pbuilder/stable-local-buildbot.tgz',
'--distribution', 'stable',
'--mirror', 'http://cdn.debian.net/debian/',
'--debootstrapopt', '--keyring=/builbot/buildbot.gpg'])
'--debootstrapopts', '--keyring=/builbot/buildbot.gpg'])
+0,
ExpectShell(workdir='wkdir', usePTY='slave-config',
command=['pdebuild', '--buildresult', '.',
Expand Down Expand Up @@ -297,7 +297,8 @@ def test_new(self):
command=['sudo', '/usr/sbin/pbuilder', '--create',
'--basetgz', '/var/cache/pbuilder/stable-local-buildbot.tgz',
'--distribution', 'stable',
'--mirror', 'http://archive.ubuntu.com/ubuntu/'])
'--mirror', 'http://archive.ubuntu.com/ubuntu/',
'--components', 'main universe'])
+0,
ExpectShell(workdir='wkdir', usePTY='slave-config',
command=['pdebuild', '--buildresult', '.',
Expand Down
1 change: 1 addition & 0 deletions master/setup.py
Expand Up @@ -122,6 +122,7 @@ def make_release_tree(self, base_dir, files):
"buildbot.changes",
"buildbot.steps",
"buildbot.steps.package",
"buildbot.steps.package.deb",
"buildbot.steps.package.rpm",
"buildbot.steps.source",
"buildbot.process",
Expand Down

0 comments on commit bb11c4a

Please sign in to comment.