~mikemc/glance-simplestreams-sync-charm/add-nclxd-default-imagetype

« back to all changes in this revision

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

  • Committer: Michael McCracken
  • Date: 2014-06-18 17:52:49 UTC
  • mfrom: (44.2.1)
  • Revision ID: git-v1:2c173d6816bed098d7134cb012528b7676b16d70
Merge pull request #10 from mikemccracken/sync-new-charmhelpers

auto-sync of charmhelpers to lp:charm-helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    config,
14
14
    log,
15
15
)
16
 
import apt_pkg
17
16
import os
18
17
 
19
18
 
56
55
    'icehouse/proposed': 'precise-proposed/icehouse',
57
56
    'precise-icehouse/proposed': 'precise-proposed/icehouse',
58
57
    'precise-proposed/icehouse': 'precise-proposed/icehouse',
 
58
    # Juno
 
59
    'juno': 'trusty-updates/juno',
 
60
    'trusty-juno': 'trusty-updates/juno',
 
61
    'trusty-juno/updates': 'trusty-updates/juno',
 
62
    'trusty-updates/juno': 'trusty-updates/juno',
 
63
    'juno/proposed': 'trusty-proposed/juno',
 
64
    'juno/proposed': 'trusty-proposed/juno',
 
65
    'trusty-juno/proposed': 'trusty-proposed/juno',
 
66
    'trusty-proposed/juno': 'trusty-proposed/juno',
59
67
}
60
68
 
61
69
# The order of this list is very important. Handlers should be listed in from
108
116
 
109
117
def filter_installed_packages(packages):
110
118
    """Returns a list of packages that require installation"""
 
119
    import apt_pkg
111
120
    apt_pkg.init()
112
121
 
113
122
    # Tell apt to build an in-memory cache to prevent race conditions (if