Allow the repository to share files between packages/versions

This MR adds the ability to share files between packages and version in the debexpo repository.

The following features has been implemented:

  • Replacing the unique constraint on the path to a unique constraint on the tuple (package, version and path)
  • Files can be shared between RepositoryFile:
    • Check on file removal for in-use RepositoryFile
    • Check on file installation for already created RepositoryFile
  • Previous version of a file is removed only if the checksum mismatch

This altogether allow the following to happen:

A upload with 1.0-1 and 1.0-2 sharing the same orig can live inside the repository (regardless of their distribution targeted).

Tests have been update to match the new behavior.

Closes #138 (closed).

Merge request reports

Loading