Revert "Add hack for manifest upgrade"

This reverts commit 5832e0f050.

Not needed now that apps are updated
This commit is contained in:
Girish Ramakrishnan
2015-06-17 18:35:12 -07:00
parent 5832e0f050
commit 81e361353d
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -225,7 +225,6 @@ function getBindsSync(app) {
assert(!app.manifest.addons || typeof app.manifest.addons === 'object');
var binds = [ ];
binds.push(path.join(paths.DATA_DIR, app.id, 'data') + ':/app/data:rw');
if (!app.manifest.addons) return binds;
+1 -1
View File
@@ -262,7 +262,7 @@ function install(appId, appStoreId, manifest, location, portBindings, accessRest
assert.strictEqual(typeof callback, 'function');
var error = manifestFormat.parse(manifest);
//if (error) return callback(new AppsError(AppsError.BAD_FIELD, 'Manifest error: ' + error.message));
if (error) return callback(new AppsError(AppsError.BAD_FIELD, 'Manifest error: ' + error.message));
error = checkManifestConstraints(manifest);
if (error) return callback(new AppsError(AppsError.BAD_FIELD, 'Manifest cannot be installed: ' + error.message));
+1 -1
View File
@@ -413,7 +413,7 @@ function verifyManifest(app, callback) {
var manifest = app.manifest;
var error = manifestFormat.parse(manifest);
// if (error) return callback(new Error(util.format('Manifest error: %s', error.message)));
if (error) return callback(new Error(util.format('Manifest error: %s', error.message)));
error = apps.checkManifestConstraints(manifest);
if (error) return callback(error);