~le-charmers/charms/trusty/rabbitmq-server/leadership-election

« back to all changes in this revision

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

  • Committer: Liam Young
  • Date: 2015-05-11 08:03:57 UTC
  • mfrom: (83.1.14 rabbitmq-server)
  • Revision ID: liam.young@canonical.com-20150511080357-3ftop9kxb6o0e3mq
Merged trunk in + LE charmhelper sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
 
159
159
def apt_cache(in_memory=True):
160
160
    """Build and return an apt cache"""
161
 
    import apt_pkg
 
161
    from apt import apt_pkg
162
162
    apt_pkg.init()
163
163
    if in_memory:
164
164
        apt_pkg.config.set("Dir::Cache::pkgcache", "")