in src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java [360:373]
protected void doExecute(InstallationContext ctx, JcrPackageManager pkgMgr, TaskResource resource)
throws RepositoryException, PackageException, IOException {
Archive archive = new ZipStreamArchive(resource.getInputStream());
try {
archive.open(false);
// we always have to do that, as there is no possibility to figure out whether the same package has already been installed
// https://issues.apache.org/jira/browse/JCRVLT-188
final ImportOptions opts = new ImportOptions();
opts.setDependencyHandling(configuration.dependencyHandling());
pkgMgr.extract(archive, opts, true);
} finally {
archive.close();
}
}