]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/osgi/ProcessDistribution.java
Fix some glitches in the normalization
[gpl/argeo-slc.git] / runtime / org.argeo.slc.repo / src / main / java / org / argeo / slc / repo / osgi / ProcessDistribution.java
index 80401d73fd06c57927c05e950feb8cb59a627d5f..bdb81ae0b57454ae1ceac883f14ac36ddb4a87c2 100644 (file)
@@ -29,13 +29,12 @@ public class ProcessDistribution implements Runnable {
                Session javaSession = null;
                try {
                        javaSession = osgiFactory.openJavaSession();
-
                        for (Iterator<? extends NameVersion> it = osgiDistribution
                                        .nameVersions(); it.hasNext();)
                                processNameVersion(javaSession, it.next());
 
                        ModularDistributionFactory mdf = new ModularDistributionFactory(
-                                       javaSession, osgiDistribution);
+                                       osgiFactory, osgiDistribution);
                        mdf.run();
 
                        // TODO why is the created distribution not automatically indexed?