Fixed a bug where the m_revisions array was not being correctly rolled back
after a bundle update throws an exception. (FELIX-647)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@679877 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java b/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
index bd9268f..18c6c88 100644
--- a/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
+++ b/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
@@ -762,6 +762,7 @@
 
         BundleRevision[] tmp = new BundleRevision[m_revisions.length - 1];
         System.arraycopy(m_revisions, 0, tmp, 0, m_revisions.length - 1);
+        m_revisions = tmp;
 
         return true;
     }