In preparation of deprecating the DESTDIR env variable, I've added a
warning when the DESTDIR variable is being used.

Signed-off-by: Elias Lutfallah <elias.lutfal...@orbitz.com>
---
 install.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/install.rb b/install.rb
index d20b7cd..e8755e0 100755
--- a/install.rb
+++ b/install.rb
@@ -306,6 +306,7 @@ def prepare_installation
   # To be deprecated once people move over to using --destdir option
   elsif ENV['DESTDIR'] != nil?
     destdir = ENV['DESTDIR']
+    warn "DESTDIR is deprecated. Use --destdir instead."
   else
     destdir = ''
   end
-- 
1.7.3.5

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to