Allow correct behavior when a task is downgraded.

If an older version of a task is uploaded, the repodata is generated
twice to ensure the unlinked "newer" task's metadata is not present.

Bug: 1044934
Change-Id: Ibeed51f0afc798ac11440487f2dc8d4fbcb1f2ab