diff --git package/hosting_package.install package/hosting_package.install
index a9336e0..c0f1267 100644
--- package/hosting_package.install
+++ package/hosting_package.install
@@ -238,3 +238,28 @@ function hosting_package_update_7() {
 
   return $ret;
 }
+
+// Remove duplicate packages introduced by a double validation of platform in 0.4 alpha 1
+function hosting_package_update_11() {
+  $ret = array();
+
+  $duplicate = array();
+  $result = db_query("SELECT DISTINCT(package_id) FROM {hosting_package_instance} GROUP BY rid, filename HAVING count(*) > 1 ORDER BY package_id;");
+  while ($res = db_fetch_array($result)) {
+    $duplicate[] = $res['package_id'];
+  }
+
+  if (count($duplicate)) {
+    $tables = array('hosting_package', 'node', 'node_revisions');
+    $duplicates = implode(', ', $duplicate);
+    foreach ($tables as $table) {
+      $query = sprintf("DELETE FROM {%s} WHERE nid IN (%s)", $table, $duplicates);
+      $ret[] = update_sql($query);
+    }
+    $query = sprintf("DELETE FROM {hosting_package_instance} WHERE package_id IN (%s) OR rid IN (%s)", $duplicates, $duplicates);
+    $ret[] = update_sql($query);
+  }
+
+  return $ret;
+}
+
