~1chb1n/charms/trusty/cinder-ceph/next.1601-test-update2

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/python/packages.py

  • Committer: Edward Hope-Morley
  • Date: 2015-02-24 11:03:24 UTC
  • Revision ID: edward.hope-morley@canonical.com-20150224110324-2y4g3dktfacav9d3
[trivial] charmhelpers sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# You should have received a copy of the GNU Lesser General Public License
18
18
# along with charm-helpers.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
 
__author__ = "Jorge Niedbalski <jorge.niedbalski@canonical.com>"
21
 
 
22
20
from charmhelpers.fetch import apt_install, apt_update
23
21
from charmhelpers.core.hookenv import log
24
22
 
29
27
    apt_install('python-pip')
30
28
    from pip import main as pip_execute
31
29
 
 
30
__author__ = "Jorge Niedbalski <jorge.niedbalski@canonical.com>"
 
31
 
32
32
 
33
33
def parse_options(given, available):
34
34
    """Given a set of options, check if available"""