~alexlist/charms/trusty/swift-storage/nrpe-rebased

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2014-06-19 10:11:47 UTC
  • Revision ID: james.page@ubuntu.com-20140619101147-8aqnz9d14gkc4ct5
[trivial] Resync helpers to pickup fstab fixes

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
 
117
116
 
118
117
def filter_installed_packages(packages):
119
118
    """Returns a list of packages that require installation"""
 
119
    import apt_pkg
120
120
    apt_pkg.init()
121
121
 
122
122
    # Tell apt to build an in-memory cache to prevent race conditions (if