Auto merge of #5564 - mati865:metadata_fix, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 25 May 2018 14:10:01 +0000 (14:10 +0000)
committerbors <bors@rust-lang.org>
Fri, 25 May 2018 14:10:01 +0000 (14:10 +0000)
commit4c8b8ac1e7f2adf16bd90fa6da2b6a21f8e6cd4c
tree8f2e6c49d176541c04b252084f7d8da7f0d4db99
parent22c0f22f5621f1b68558d80a0966d073b9b68932
parent059107e1a0ad270f3c4fe193464f2b82d9d5999f
Auto merge of #5564 - mati865:metadata_fix, r=alexcrichton

Always replace metadata when replacing package

Fixes https://github.com/rust-lang/cargo/issues/4582

I'm having problem writing test for it.
The test should install binary, make commit and reinstall binary, this part is done.
To know if it was done properly we need to compare git revision of HEAD and installed binary and that's where the problems begin...