~1chb1n/charms/trusty/cinder/next-amulet-mitaka-1601

« back to all changes in this revision

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

  • Committer: Corey Bryant
  • Date: 2016-01-11 20:45:49 UTC
  • mfrom: (140.1.3 cinder)
  • Revision ID: corey.bryant@canonical.com-20160111204549-uez3j10lisf1ya2o
[corey.bryant,r=osci] Sync charm-helpers.

Enable sync of payload.archive and sync charm-helpers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    filter_installed_packages,
23
23
    apt_install,
24
24
)
25
 
from charmhelpers.core.host import mkdir
26
25
 
27
26
if filter_installed_packages(['git']) != []:
28
27
    apt_install(['git'])
62
61
        else:
63
62
            dest_dir = os.path.join(os.environ.get('CHARM_DIR'), "fetched",
64
63
                                    branch_name)
65
 
        if not os.path.exists(dest_dir):
66
 
            mkdir(dest_dir, perms=0o755)
67
64
        try:
68
65
            self.clone(source, dest_dir, branch, depth)
69
66
        except OSError as e: