diff options
Diffstat (limited to 'apexer/apex_manifest.py')
-rw-r--r-- | apexer/apex_manifest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apexer/apex_manifest.py b/apexer/apex_manifest.py index d75d95b..216dcd0 100644 --- a/apexer/apex_manifest.py +++ b/apexer/apex_manifest.py @@ -35,4 +35,6 @@ def ValidateApexManifest(manifest_raw): raise ApexManifestError("'name' field is required.") if manifest_pb.version == 0: raise ApexManifestError("'version' field is required.") + if manifest_pb.noCode and (manifest_pb.preInstallHook or manifest_pb.postInstallHook): + raise ApexManifestError("'noCode' can't be true when either preInstallHook or postInstallHook is set") return manifest_pb |