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:
Peter Serwylo 2014-02-24 11:01:56 +11:00
parent 87f2da7e2f
commit 45d046b445

View File

@ -628,6 +628,7 @@ public class UpdateService extends IntentService implements ProgressListener {
operations.add(updateExistingApk(apk)); operations.add(updateExistingApk(apk));
} else { } else {
operations.add(insertNewApk(apk)); operations.add(insertNewApk(apk));
knownApks.add(apk); // In case another repo has the same version/id combo for this apk.
} }
} }