}
private void assembeUpdate(Resource resource) {
List<Resource> requires = resolver.getRequires(resource);
for (Resource require : requires) {
ResourceTask resolve = resolved.get(require.getName());
if (null == resolve) {
Resource existed = getExisted(require.getName());
ResourceTask newTask = null;
if (null == existed) {
newTask = new InstallTask(require);
} else if (require.isNewerThen(existed)) {
newTask = new UpdateTask(require, existed);
}
if (null != newTask) {
newTask.increasePriority();
assemble(newTask);
}
} else {
resolve.increasePriority();
if (require.isNewerThen(resolve.getResource())) {