#1327 volume option for dist-repo
Merged by mikem. Opened by mikem.
mikem/koji dist-repo-volume  into  master

Download 1327.patch

When the rpms live on a different volume, it's very inefficient to generate a dist repo on the main volume (because rpms will have to be copied instead of linked). This change allows the user to specify the volume for the repo.

Fixes: #1366

Now that I'm filing this, I realize that I need to update kojira as well...

5 new commits added

  • fix unit test
  • handle other volumes in pruneLocalRepos
  • kojira: handle repos on other volumes
  • also write repo.json for normal repos
  • write repo.json in dist_repo_init

:thumbsup:

1 new commit added

  • fix

@mikem Please make sure to clean up the commits before merging it. Commits that just say fix don't help anyone later down the road...

@ngompa In this project, PRs are the unit of change and we have an always merge policy. Anyone looking at commits needs to consider them in the context of the PR they are contained in.

That said, of course it is better to have clear commit messages (and I usually do).

@mikem I'm aware of that, but I was trying to figure out what the specific change that came from fix was for. Normally, the commits going in do actually make sense, so I don't have to say anything.

rebased onto 0f2fc87c341c3e32ec1047ceaaa8d442a63455b0

:thumbsup:

2 new commits added

  • handle symlinks in pruneLocalRepos
  • only call get_info() if we're going to need it

Needed a couple fixes. Seems to be working better now.

Metadata Update from @mikem:
- Pull-request tagged with: testing-ready

I've created an issue #1366 to track this in roadmap, etc.

koji.ensuredir(os.path.dirname(basedir)
is needed here for completely new repos.

ah, good catch!

1 new commit added

  • ensuredir for repo volume symlinks

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

Commit aa7eb74f fixes this pull-request

Pull-Request has been merged by mikem

Metadata