Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove hardcoded paths to chmod, ln.

This was preventing install on CyanogenMod (busybox in xbin)
  • Loading branch information...
commit c53c0fc5f01d6b6efd716ca368f9e53b5d08e9fa 1 parent 4f77a32
@apage43 apage43 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/couchdb/android/CouchInstaller.java
View
4 src/org/couchdb/android/CouchInstaller.java
@@ -53,7 +53,7 @@ private static void installPackage(String pkg, Handler handler)
Log.v(TAG,
"LINK: " + e.getName() + " -> " + e.getLinkName());
Runtime.getRuntime().exec(
- new String[] { "/system/bin/ln", "-s", e.getName(),
+ new String[] { "ln", "-s", e.getName(),
e.getLinkName() });
installedfiles.add(e.getName());
} else {
@@ -63,7 +63,7 @@ private static void installPackage(String pkg, Handler handler)
IOUtils.copy(tarstream, new FileOutputStream(target));
installedfiles.add(e.getName());
}
- Runtime.getRuntime().exec("/system/bin/chmod 755 " + e.getName()); //TODO: Set to actual tar perms.
+ Runtime.getRuntime().exec("chmod 755 " + e.getName()); //TODO: Set to actual tar perms.
files++;
Message progress = new Message();
progress.arg1 = files++;
Please sign in to comment.
Something went wrong with that request. Please try again.