Merge branch 'bug/rm7852' of github.com:bturner-r7/metasploit-framework into bturner-r7-bug/rm7852
commit
3a030b2d78
|
@ -84,7 +84,7 @@ def apt_upgrade_available(package)
|
|||
require 'open3'
|
||||
installed = 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|
|
||||
installed = $1 if line =~ /Installed: ([\w\-+.:~]+)$/
|
||||
upgrade = $1 if line =~ /Candidate: ([\w\-+.:~]+)$/
|
||||
|
|
Loading…
Reference in New Issue