ErrnoException: symlink failed: EEXIST (File exists) when creating swap repos
I'm seeing this regularly when first starting the swap connection via WiFi. It then seems to fix itself, so my guess is that it is because things are running slowly and one step gets ahead of another.
LocalRepoService E Error creating repo
E android.system.ErrnoException: symlink failed: EEXIST (File exists)
E at libcore.io.Posix.symlink(Native Method)
E at libcore.io.BlockGuardOs.symlink(BlockGuardOs.java:309)
E at android.system.Os.symlink(Os.java:521)
E at org.fdroid.index.IndexCreator.copyApkToRepo(IndexCreator.kt:85)
E at org.fdroid.index.v1.IndexV1Creator.getPackage(IndexV1Creator.kt:83)
E at org.fdroid.index.v1.IndexV1Creator.addApp(IndexV1Creator.kt:69)
E at org.fdroid.index.v1.IndexV1Creator.createIndex(IndexV1Creator.kt:49)
E at org.fdroid.index.v1.IndexV1Creator.createRepo(IndexV1Creator.kt:37)
E at org.fdroid.fdroid.nearby.LocalRepoManager.generateIndex(LocalRepoManager.java:259)
E at org.fdroid.fdroid.nearby.LocalRepoService.runProcess(LocalRepoService.java:107)
E at org.fdroid.fdroid.nearby.LocalRepoService$GenerateLocalRepoThread.run(LocalRepoService.java:96)
@grote there are no tests for the IndexCreator stuff that I could find. It seems like this should be easily testable as an emulator test. Could you point me to how to frame that?
Edited by Hans-Christoph Steiner