I need to create a patch release of one of our managed packages and have created the patch org. But that patch org did not include the two managed packages present in the normal packaging org and when I tried to add them I got this message:
The AppExchange is not enabled for your organization. Contact salesforce.com to enable it.
(Objects from the two managed packages are accessed via dynamic SOQL in this third managed package, hence the need to have them present to test. The dependency is run-time not compile-time.)
I have contacted Salesforce support, and so far the response is that managed packages cannot be added to a patch org.
So testing patches with this sort of dependency looks especially awkward. So creating patches with this sort of dependency is impossible (as the tests have to pass when a version is uploaded).
Has anyone else hit this problem? Workarounds?