Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D debexpo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mentors.debian.net
  • debexpo
  • Merge requests
  • !181

Allow the repository to share files between packages/versions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Baptiste Beauplat requested to merge lyknode/debexpo:repository-shared-files into live Aug 28, 2021
  • Overview 2
  • Commits 5
  • Pipelines 1
  • Changes 3

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).

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: repository-shared-files