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

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/host.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:
12
12
import string
13
13
import subprocess
14
14
import hashlib
15
 
import apt_pkg
16
15
 
17
16
from collections import OrderedDict
18
17
 
318
317
       0 => Installed revno is the same as supplied arg
319
318
      -1 => Installed revno is less than supplied arg
320
319
    '''
 
320
    import apt_pkg
321
321
    if not pkgcache:
322
322
        apt_pkg.init()
323
323
        pkgcache = apt_pkg.Cache()