~brad-marshall/charms/trusty/openstack-dashboard/fix-hacluster-config

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/fetch/bzrurl.py

  • Committer: Liam Young
  • Date: 2014-08-13 14:26:30 UTC
  • mfrom: (33.1.2 openstack-dashboard)
  • Revision ID: liam.young@canonical.com-20140813142630-pqd132m0weoq1zz4
[gnuoy, rs=jamespage] Sync charm-helpers from lp:charm-helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    def install(self, source):
40
40
        url_parts = self.parse_url(source)
41
41
        branch_name = url_parts.path.strip("/").split("/")[-1]
42
 
        dest_dir = os.path.join(os.environ.get('CHARM_DIR'), "fetched", branch_name)
 
42
        dest_dir = os.path.join(os.environ.get('CHARM_DIR'), "fetched",
 
43
                                branch_name)
43
44
        if not os.path.exists(dest_dir):
44
45
            mkdir(dest_dir, perms=0755)
45
46
        try: