#397 bin/cgit_pkg_list is searching in weird location
Closed: Fixed 2 years ago by praiskup. Opened 5 years ago by praiskup.

dist-git project sets by default SetEnv GIT_PROJECT_ROOT /var/lib/dist-git/git, but cgit_pkg_list script seems to search in /var/lib/dist-git/git/repositories.

I don't know how that should work, any idea? I have no such directory on my instances /var/lib/dist-git/git/repositories.

Also, shouldn't we recurse down one more directory? Say into <copruser>/<coprproject>, e.g. by find -maxdepth 2 -type d -mindepth 2


That part of copr-dist-git withcgit_pkg_list is buggy. It should generate a list of git repos to be used with project-list config option but it doesn't work correctly as you point out. You might to comment out project-list in /etc/cgitrc and use only scan-path setting.

Metadata Update from @praiskup:
- Issue assigned to praiskup

5 years ago

Before we close this I'd like to add two options to that script:
- the directory that should be scanned, say --scan-path
- optimization option, that will only recurse into specific copr, so we don't have to traverse everything when some new git repo is added

Once those are solved, the cgit content should be available instantly.

Metadata Update from @msuchy:
- Issue tagged with: code-cleanup

5 years ago

Turns out that even depth 3 is too much nowadays, so scanning takes several minutes which we can not afford to run the script after each bug (see the dupe #815).

Metadata Update from @praiskup:
- Issue tagged with: bug

4 years ago

Metadata Update from @praiskup:
- Assignee reset

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1764 Merged 2 years ago