~louis/+junk/nova-compute

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/utils.py

Resync charm-helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from charmhelpers.core.host import (
19
19
    lsb_release,
 
20
)
 
21
 
 
22
from charmhelpers.fetch import (
20
23
    apt_install,
21
24
)
22
25
 
130
133
        e = 'Could not determine version of uninstalled package: %s' % package
131
134
        error_out(e)
132
135
 
133
 
    vers = apt.UpstreamVersion(pkg.current_ver.ver_str)
 
136
    vers = apt.upstream_version(pkg.current_ver.ver_str)
134
137
 
135
138
    try:
136
139
        if 'swift' in pkg.name: