don't add Msf prefix if it's already there, i.e. we already fixed this file

git-svn-id: file:///home/svn/framework3/trunk@5743 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2008-10-13 04:23:07 +00:00
parent a7a7da9e28
commit 770ed0286c
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ data.each_line do |line|
end
if(line =~ /^(\s*)include (.*)/)
line = "#{$1}include Msf::#{$2.strip}\n"
spaces = $1
inc = $2
if (inc !~ /Msf/)
line = "#{spaces}include Msf::#{inc.strip}\n"
end
end
if(line =~ /^(\s*)class ([^\<]+)\s*<\s*(.*)/)