mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 14:51:51 -04:00
Fix extract...
This commit is contained in:
parent
b344fee33a
commit
0fee980626
@ -386,7 +386,7 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
return new File(selectedFile.toString());
|
return new File(selectedFile.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void uncompressTarXZ(final File tarFile, final File dest) throws IOException, ErrnoException {
|
private void uncompressTarXZ(final File tarFile, final File dest) throws IOException {
|
||||||
|
|
||||||
dest.mkdir();
|
dest.mkdir();
|
||||||
TarArchiveInputStream tarIn = null;
|
TarArchiveInputStream tarIn = null;
|
||||||
@ -424,7 +424,11 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
File destPath = new File(dest, tarEntry.getName());
|
File destPath = new File(dest, tarEntry.getName());
|
||||||
if (tarEntry.isSymbolicLink()) {
|
if (tarEntry.isSymbolicLink()) {
|
||||||
destPath.getParentFile().mkdirs();
|
destPath.getParentFile().mkdirs();
|
||||||
android.system.Os.symlink(tarEntry.getName(), tarEntry.getLinkName());
|
try {
|
||||||
|
android.system.Os.symlink(tarEntry.getName(), tarEntry.getLinkName());
|
||||||
|
} catch (ErrnoException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
// unpackShell.writeToProcess("ln -s " + tarEntry.getName() + " " + tarEntry.getLinkName());
|
// unpackShell.writeToProcess("ln -s " + tarEntry.getName() + " " + tarEntry.getLinkName());
|
||||||
} else if (tarEntry.isDirectory()) {
|
} else if (tarEntry.isDirectory()) {
|
||||||
destPath.mkdirs();
|
destPath.mkdirs();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user