Permalink
Browse files

Add explanatory comment to ensure_ppa

  • Loading branch information...
1 parent 7029035 commit 8c67584b9d57d635e8694ace095f7e6d6f758874 @cespare cespare committed Mar 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/terraform/dsl.rb
View
@@ -62,6 +62,8 @@ def ensure_package(package)
def ensure_ppa(ppa)
ppa_part, location = ppa.split(":", 2)
fail_and_exit("PPA location must be of the form ppa:[USER]/[NAME]") unless (ppa_part == "ppa") && location
+ # The python-software-properties package provides the add-apt-repository convenience tool for editing
+ # the list of apt's source repositories.
ensure_package("python-software-properties")
dep "ppa: #{location}" do
met? { !`apt-cache policy 2> /dev/null | grep ppa.launchpad.net/#{location}/`.empty? }

0 comments on commit 8c67584

Please sign in to comment.