Properly Removing Corrupted or Unwanted Versions from the Repository #117
-
I would like to know the correct steps for removing corrupted or unwanted versions from the repository. Here's what I assume should be done:
Could someone please confirm if my understanding is correct? Are there any additional steps or precautions I should be aware of when performing this task? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@its-monotype Good question. In addition to the steps described above, you'll also need to re-sign the affected metadata files. Note that From the command line:
Also see CLI help: The If you want to remove a specific version that is not the latest, you can use Alternatively, you could remove the metadata entries manually, then re-sign. |
Beta Was this translation helpful? Give feedback.
-
Almost the same question: If so, can I just delete them or do I need to update some metadata files? |
Beta Was this translation helpful? Give feedback.
-
@RasmusN Good question. Removing old versions, i.e. versions other than the latest version, is only safe if you use full updates. Presently, However, removing old versions is not safe if you use patch updates, because these depend upon each other. Removing a patch, other than the latest one, will break (part of) the chain. Currently, there is no safeguard against this. That's why the current implementation only has a built-in command for rolling back the latest version ( Beware that patch updates are enabled by default, but you can disable them using the check_for_updates(patch=False)
In principle, you can remove any version, as long as the change is reflected in the metadata. Have a look at the Basically, if you remove and/or modify any file from the targets directory, the |
Beta Was this translation helpful? Give feedback.
@RasmusN Good question.
Removing old versions, i.e. versions other than the latest version, is only safe if you use full updates.
Presently,
tufup
does not check if the current (running) version of your app is available in the targets list, so full updates from any old version to the latest one should still work.However, removing old versions is not safe if you use patch updates, because these depend upon each other. Removing a patch, other than the latest one, will break (part of) the chain. Currently, there is no safeguard against this. That's why the current implementation only has a built-in comm…