Fixed windows platform detection in reposman.rb (#5039).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3571 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c312b8b058
commit
7e4aa9ca92
|
@ -221,10 +221,14 @@ def other_read_right?(file)
|
||||||
end
|
end
|
||||||
|
|
||||||
def owner_name(file)
|
def owner_name(file)
|
||||||
RUBY_PLATFORM =~ /mswin/ ?
|
mswin? ?
|
||||||
$svn_owner :
|
$svn_owner :
|
||||||
Etc.getpwuid( File.stat(file).uid ).name
|
Etc.getpwuid( File.stat(file).uid ).name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def mswin?
|
||||||
|
(RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
|
||||||
|
end
|
||||||
|
|
||||||
projects.each do |project|
|
projects.each do |project|
|
||||||
log("treating project #{project.name}", :level => 1)
|
log("treating project #{project.name}", :level => 1)
|
||||||
|
@ -303,4 +307,4 @@ projects.each do |project|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue