Revert "Add hack for manifest upgrade"
This reverts commit 5832e0f050.
Not needed now that apps are updated
This commit is contained in:
@@ -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
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user