Merge branch 'bug/rm7852' of github.com:bturner-r7/metasploit-framework into bturner-r7-bug/rm7852

unstable
sinn3r 2013-03-31 13:21:16 -05:00
commit 3a030b2d78
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ def apt_upgrade_available(package)
require 'open3' require 'open3'
installed = nil installed = nil
upgrade = nil upgrade = nil
::Open3.popen3("apt-cache", "policy", package) do |stdin, stdout, stderr| ::Open3.popen3({'LANG'=>'en_US.UTF-8'}, "apt-cache", "policy", package) do |stdin, stdout, stderr|
stdout.each do |line| stdout.each do |line|
installed = $1 if line =~ /Installed: ([\w\-+.:~]+)$/ installed = $1 if line =~ /Installed: ([\w\-+.:~]+)$/
upgrade = $1 if line =~ /Candidate: ([\w\-+.:~]+)$/ upgrade = $1 if line =~ /Candidate: ([\w\-+.:~]+)$/