mitchellh/vagrant — pull request #639 by tobiasjost (2012-01-13 18:10:27+00:00)
Title: Ignore distro-specific suffix when comparing guest addition version

Hello,

this is my first contribution, so please bear with me for not supplying tests or adhering to common guidelines. But do correct me I'm thankful for advise :)

When having installed virtualbox from the Ubuntu 11.10 repositories, VirtualBox reports it's version number suffixed by "_ubuntu". When vagrant checks for guest additions at vm-boot, a version mismatch is reported, because "1.2.3" does not equal "1.2.3_ubuntu".

I sanitized the version number before comparison, assuming all distro-specific versions use "_" as delimiter.