Change 14617

jmistry
jmistry committed this change into //guest/perforce_software/p4ruby/main
Request Review
Download .zip
Correct version string on Mac OS X

Fixed the output of P4.identify for P4Ruby built with Ruby 1.9.2 on
Mac OS X, so that it now reads 'P4RUBY/DARWIN10X86_64/...'.

Previously, even if $p4osplat was set, it could get overwritten with the
output from 'uname -p', which erroneously set it to 'X86'.  Now, we check
if '$p4osplat' is set, and only if it isn't do we fall back on 'uname -p'. 
Otherwise, we assume that CONFIG[ 'arch' ] is correct.
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
p4conf.rb#33
Loading...
Tip: Use n and p to cycle through the changes.