Update: Enable libjbigi update for ARM

This commit is contained in:
zzz
2016-04-29 22:34:55 +00:00
parent 9128c79e05
commit 139f386fb8
3 changed files with 42 additions and 23 deletions

View File

@@ -1,3 +1,19 @@
2016-04-29 zzz
* Debian:
- Add runtime dependency on gettext-base,
link to /usr/share/java/libintl.jar
- Add runtime dependency on libgetopt-java,
link to /usr/share/java/gnu-getopt.jar
* SysTray:
- Remove systray4j.jar from linux installers
- Move SysTray.java to SysTrayImpl.java
- New SysTray.java that instantiates SysTrayImpl
by reflection, so the SysTrayImpl.java source is optional
- Remove systray4j.jar, systray4j.dll, and SysTrayImpl.java
from Debian source packages
- Remove systray4j.jar from Debian binary packages
* Update: Enable libjbigi update for ARM
2016-04-28 zzz
* News: Parse and store CRLs in news feed

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 7;
public final static long BUILD = 8;
/** for example "-test" */
public final static String EXTRA = "";

View File

@@ -135,12 +135,12 @@ public class InstallUpdate {
boolean goodOS = isWin || isMac ||
osName.contains("linux") || osName.contains("freebsd");
// only do this on these x86
File jbigiJar = new File(context.getBaseDir(), "lib/jbigi.jar");
if (isX86 && goodOS && jbigiJar.exists()) {
if (goodOS && jbigiJar.exists()) {
String libPrefix = (isWin ? "" : "lib");
String libSuffix = (isWin ? ".dll" : isMac ? ".jnilib" : ".so");
if (isX86) {
File jcpuidLib = new File(context.getBaseDir(), libPrefix + "jcpuid" + libSuffix);
if (jcpuidLib.canWrite() && jbigiJar.lastModified() > jcpuidLib.lastModified()) {
String path = jcpuidLib.getAbsolutePath();
@@ -154,7 +154,9 @@ public class InstallUpdate {
}
}
}
}
if (isX86 || SystemVersion.isARM()) {
File jbigiLib = new File(context.getBaseDir(), libPrefix + "jbigi" + libSuffix);
if (jbigiLib.canWrite() && jbigiJar.lastModified() > jbigiLib.lastModified()) {
String path = jbigiLib.getAbsolutePath();
@@ -170,6 +172,7 @@ public class InstallUpdate {
}
}
}
}
/**
* Delete all files listed in the delete file.