~untrusted-ci-dev-bot/bileto/bileto-ubuntu-trusty-landing-005

« back to all changes in this revision

Viewing changes to bileto/worker/manual.py

  • Committer: Bileto Bot
  • Author(s): Robert Bruce Park
  • Date: 2016-08-18 23:44:41 UTC
  • mfrom: (672.1.31 publish-job)
  • Revision ID: untrusted-ci-dev-bot@canonical.com-20160818234441-5hbohl9uzrkh9g31
Implement publish job in Bileto, obsoleting jenkins entirely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
Defines steps unique to manually-built source packages.
4
4
"""
5
5
 
 
6
from os import environ
 
7
 
6
8
from asyncio import coroutine
7
9
 
8
10
from bileto.worker.package import Package
26
28
    @coroutine
27
29
    def expose(self):
28
30
        """NOP; Users will expose the source package themselves."""
 
31
 
 
32
    @coroutine
 
33
    def check_package_ack(self, source=None):
 
34
        """User must **always** have upload rights for manual sources."""
 
35
        if not self.authorized:
 
36
            return '{} not authorized to upload {}'.format(
 
37
                environ['BLAME'], self.name)
 
38
        result = yield from super().check_package_ack(source=source)
 
39
        return result