use correct buildinfo.json so unipackages aren't rebuilt all the time

This commit is contained in:
Geoff Schmidt
2013-04-22 07:33:21 -07:00
committed by David Glasser
parent 20efd73f98
commit d99dac599a

View File

@@ -1261,7 +1261,7 @@ _.extend(Package.prototype, {
// If we're supposed to check the dependencies, go ahead and do so
if (options.onlyIfUpToDate) {
if (options.buildOfPath &&
(buildInfoJson.buildOfPath !== options.buildOfPath)) {
(buildInfoJson.source !== options.buildOfPath)) {
// This catches the case where you copy a source tree that had
// a .build directory and then modify a file. Without this
// check you won't see a rebuild (even if you stop and restart