~lihuiguo/landscape-charm/registration-relation

« back to all changes in this revision

Viewing changes to charmhelpers/fetch/bzrurl.py

  • Committer: 🤖 Landscape Builder
  • Author(s): Simon Poirier
  • Date: 2019-05-24 14:06:39 UTC
  • mfrom: (396.1.1 charmhelpers-and-keys)
  • Revision ID: _landscape_builder-20190524140639-q3t8aavbxute9714
This branch updates charm helpers, and add the fix proposed as
https://github.com/juju/charm-helpers/pull/326

This should fix apt failures when specifying a deb source and key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# limitations under the License.
14
14
 
15
15
import os
16
 
from subprocess import check_call
 
16
from subprocess import STDOUT, check_output
17
17
from charmhelpers.fetch import (
18
18
    BaseFetchHandler,
19
19
    UnhandledSource,
55
55
            cmd = ['bzr', 'branch']
56
56
            cmd += cmd_opts
57
57
            cmd += [source, dest]
58
 
        check_call(cmd)
 
58
        check_output(cmd, stderr=STDOUT)
59
59
 
60
60
    def install(self, source, dest=None, revno=None):
61
61
        url_parts = self.parse_url(source)