OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
3.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ooo/fix_xmlhelp-port-to-db-4.3_diff.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./patches/src680/xmlhelp-port-to-db-4.3.diff.orig 2006-10-19 18:20:32.000000000 -0400
  17. +++ ./patches/src680/xmlhelp-port-to-db-4.3.diff 2006-10-19 18:21:47.000000000 -0400
  18. @@ -118,9 +118,9 @@
  19. // TODO Auto-generated catch block
  20. e.printStackTrace();
  21. }
  22. ---- xmlhelp/source/com/sun/star/help/HelpIndexer.java.ark 2005-07-23 01:22:18.000000000 +0200
  23. -+++ xmlhelp/source/com/sun/star/help/HelpIndexer.java 2005-07-23 02:14:01.000000000 +0200
  24. -@@ -151,12 +151,14 @@
  25. +--- xmlhelp/source/com/sun/star/help/HelpIndexer.java~ 2006-10-19 18:12:55.000000000 -0400
  26. ++++ xmlhelp/source/com/sun/star/help/HelpIndexer.java 2006-10-19 18:17:29.000000000 -0400
  27. +@@ -124,12 +124,14 @@
  28. private void schnitzel() {
  29. // Determine the location of the database
  30. String installDirectory = HelpDatabases.getInstallDirectory();
  31. @@ -139,7 +139,7 @@
  32. // Create indexDirectory, if not existent
  33. String indexDirectory =
  34. -@@ -191,16 +193,16 @@
  35. +@@ -164,16 +166,16 @@
  36. String fileName =
  37. installDirectory + _language + File.separator + _module + ".db";
  38. @@ -161,7 +161,7 @@
  39. try {
  40. String keyStr = key.getString();
  41. String dataStr = data.getFile();
  42. -@@ -229,13 +231,13 @@
  43. +@@ -202,13 +204,13 @@
  44. } catch (Exception e) {
  45. }
  46. if (first) {
  47. @@ -177,8 +177,8 @@
  48. + table.close(false);
  49. System.out.println("Indexing...");
  50. - Enumeration enum = _hashDocInfo.elements();
  51. -@@ -314,10 +316,10 @@
  52. + Enumeration enumer = _hashDocInfo.elements();
  53. +@@ -290,10 +292,10 @@
  54. } catch (Exception e) {
  55. System.err.println(e.getMessage());
  56. }
  57. @@ -191,22 +191,18 @@
  58. System.out.println("Error initializing database");
  59. System.exit(1);
  60. } catch (FileNotFoundException fnfe) {
  61. -@@ -429,9 +431,12 @@
  62. - list[j++] = (String) enum.nextElement();
  63. +@@ -405,9 +407,8 @@
  64. + list[j++] = (String) enumer.nextElement();
  65. }
  66. - Db table;
  67. + Database table;
  68. try {
  69. - table = new Db(null, 0);
  70. -+ DatabaseConfig cfg=DatabaseConfig.DEFAULT;
  71. -+ cfg.setType(DatabaseType.BTREE);
  72. -+ cfg.setAllowCreate(true);
  73. -+ cfg.setMode(0644);
  74. String fileName =
  75. HelpDatabases.getInstallDirectory()
  76. -@@ -440,15 +445,15 @@
  77. +@@ -416,15 +417,15 @@
  78. + _module
  79. + ".key";
  80. @@ -225,19 +221,22 @@
  81. } catch (Exception e) {
  82. System.out.println("error writing keydata");
  83. }
  84. -@@ -464,10 +469,8 @@
  85. - list[j++] = (String) enum.nextElement();
  86. +@@ -440,9 +441,12 @@
  87. + list[j++] = (String) enumer.nextElement();
  88. }
  89. - Db table;
  90. -+ Database table;
  91. ++ Database table;
  92. try {
  93. - table = new Db(null, 0);
  94. --
  95. ++ DatabaseConfig cfg=DatabaseConfig.DEFAULT;
  96. ++ cfg.setType(DatabaseType.BTREE);
  97. ++ cfg.setAllowCreate(true);
  98. ++ cfg.setMode(0644);
  99. +
  100. String fileName =
  101. HelpDatabases.getInstallDirectory()
  102. - + _language
  103. -@@ -475,15 +478,19 @@
  104. +@@ -451,15 +455,19 @@
  105. + _module
  106. + ".ht";