So the problem is that it's not resurrecting the existing source properly. What it should do is:
* change the existing source and any publishing records from DELETED to PENDING
* any existing build records that are not FULLYBUILT should be set to NEEDSBUILD. unless they were FAILEDTOBUILD.
* new build records should be created where appropriate (e.g. new architecture might be available)
So the problem is that it's not resurrecting the existing source properly. What it should do is:
* change the existing source and any publishing records from DELETED to PENDING
* any existing build records that are not FULLYBUILT should be set to NEEDSBUILD. unless they were FAILEDTOBUILD.
* new build records should be created where appropriate (e.g. new architecture might be available)