mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-30 09:41:33 -05:00
Fix unique key violation in update service.
When two repos both add an apk with same version and id, then it would break.
This commit is contained in:
@@ -628,6 +628,7 @@ public class UpdateService extends IntentService implements ProgressListener {
|
||||
operations.add(updateExistingApk(apk));
|
||||
} else {
|
||||
operations.add(insertNewApk(apk));
|
||||
knownApks.add(apk); // In case another repo has the same version/id combo for this apk.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user