Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • repod repod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • repodrepod
  • Merge requests
  • !40

Draft: Adding tooling for repo and pool management

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Anton Hvornum requested to merge torxed/repod:issue-14 into main Jun 04, 2022
  • Overview 7
  • Commits 11
  • Pipelines 8
  • Changes 3

This will fix #14 (closed) and add tooling for basic file management of packages. The following should be True now:

  1. Pre-commit file actions:
    • Add packages to pool dir via copy + rename
      • File already exists with different content → error
  2. Post-commit file actions:
    • Add symlinks to repo dir
    • Generate new DBs
    • Rename new DBs over current DBs
  3. Garbage-collect files:
    • Remove unused symlinks from repo dir
    • Remove unused packages from pool dir

Usage

Pool

Adding a file to pool

$ pool_update --package ~/gcc-11.2.0-4-x86_64.pkg.tar.zst --add

Removing a file from pool

$ pool_update --package gcc-11.2.0-4-x86_64.pkg.tar.zst --remove

Repo

Adding a file to repo

$ repo_update --package gcc-11.2.0-4-x86_64.pkg.tar.zst --add

Removing a file from repo

$ repo_update --package gcc-11.2.0-4-x86_64.pkg.tar.zst --remove
Edited Jun 05, 2022 by Anton Hvornum
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: issue-14