Skip to content

Commit

Permalink
Merge pull request #396 from wolfgangmm/develop
Browse files Browse the repository at this point in the history
[ignore] Restore: rebuild package repo failed due to wrong query.
  • Loading branch information
Lars Windauer committed Nov 20, 2014
2 parents ea73ed6 + 0ca482f commit 97bbbdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/org/exist/backup/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ private static void restoreWithoutGui(final String username, final String passwo
"as admin:\n\n" +
"import module namespace repair=\"http://exist-db.org/xquery/repo/repair\"\n" +
"at \"resource:org/exist/xquery/modules/expathrepo/repair.xql\";\n" +
"repair:rebuild-all()\n");
"repair:clean-all(),\n" +
"repair:repair()\n");
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/org/exist/client/ClientFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,8 @@ public static void repairRepository(Collection collection) throws XMLDBException
final XQueryService service = (XQueryService) collection.getService("XQueryService", "1.0");
service.query("import module namespace repair=\"http://exist-db.org/xquery/repo/repair\"\n" +
"at \"resource:org/exist/xquery/modules/expathrepo/repair.xql\";\n" +
"repair:rebuild-all()");
"repair:clean-all(),\n" +
"repair:repair()");
}

public UserManagementService getUserManagementService() throws XMLDBException {
Expand Down

0 comments on commit 97bbbdd

Please sign in to comment.