When adding more than one local repository to a virtual repository it fails with the error:
"Repository 'p2-virtual' aggregates another repository 'p2-local2' that has a mismatching package type Generic"
This is due to the 4.x code validating that all virtuals contain only packages of their type, but an exception must be made for P2 which has Generic repositories for locals.
Steps to reproduce:
1) Create two local generic repositories
2) Add them both to a P2 virtual repository and click 'Save'