Allow the upload of Debian packages to GitLab Generic Package Repository
Problem to solve
I would like to use GitLab Generic Package Repository to store Debian packages generated by projects during continuous delivery operations. However, Debian packages make use of '~' in their version string, therefore uploading a package with the following name fails helloworld_1.2.3~rc1-1_amd64.deb
, the reason being '~' is not allowed in file names (see https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file). Changing the name of the package is not really an option since the Debian policy is quite clear, widely known and widely used.
Proposal
Allow the use of '~' in file names hosted by GitLab Generic Package Repository.
Solution
Change the regexp to allow ~
here that's used to validate the filename
for generic packages.
Edited by Dzmitry (Dima) Meshcharakou