Skip to content

Adding some failure detection and user guidiance for setup-pureos-pkg-repo

I've added some failure exception detection so using setup-pureos-pkg-repo will post some more information in case something as going wrong.

It happen to me while trying to use the script that I saw the typical Python error messages as I doesn't have the needed permissions on source.p.s to modify a repository.

This MR does contain the following things for setup-pureos-pkg-repo.

  1. It will catch up a missing installation of python3-gitlab.
  2. Print the list of arguments in case the script was called without any.
  3. It wraps a failing access to the list or an id of a project by the API and print out some additional information.

Marking this MR as WIP for now as I think adding the same stuff to check-pureos-pkg-repo would be nice too. Can add this here too in case it's requested.

Edited by Guido Gunther

Merge request reports