Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch-gen needs to build patches for "add-ons" #18

Merged
merged 1 commit into from Jan 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -225,9 +225,6 @@ public PatchBuilderWrapper toPatchBuilder() {
final PatchBuilderWrapper wrapper = new PatchBuilderWrapper() {
@Override
PatchElementBuilder modifyLayer(String name, boolean addOn) {
if (addOn) {
throw processingError("does not support add-ons %s", name);
}
final PatchElementConfigBuilder config = PatchConfigBuilder.this.elements.get(name);
if (config == null) {
return null;
Expand All @@ -238,9 +235,9 @@ PatchElementBuilder modifyLayer(String name, boolean addOn) {
config.setPatchType(patchType);
}
if (patchType == Patch.PatchType.CUMULATIVE) {
builder = upgradeElement(config.getPatchId(), name, false);
builder = upgradeElement(config.getPatchId(), name, addOn);
} else {
builder = oneOffPatchElement(config.getPatchId(), name, false);
builder = oneOffPatchElement(config.getPatchId(), name, addOn);
}
if (config.getDescription() != null) {
builder.setDescription(config.getDescription());
Expand Down