gitea/modules/packages
Giteabot a424f6d4f8
Fix handling of Debian files with trailing slash () ()
Backport  by @KN4CK3R

Fixes 

- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
..
alpine Add Alpine package registry ()
cargo Add Cargo package registry ()
chef Add Chef package registry ()
composer Replace `interface{}` with `any` () ()
conan Use ErrInvalidArgument in packages ()
conda Add Conda package registry ()
container Use more specific test methods ()
cran Add CRAN package registry ()
debian Fix handling of Debian files with trailing slash () ()
goproxy Add Go package registry ()
helm Replace `interface{}` with `any` () ()
maven Add support for different Maven POM encoding () ()
npm Return `repository` in npm package metadata endpoint ()
nuget Add Debian package registry ()
pub Replace `interface{}` with `any` () ()
pypi Implement FSFE REUSE for golang files ()
rpm Add RPM registry ()
rubygems Replace `interface{}` with `any` () ()
swift Add Swift package registry ()
vagrant Implement FSFE REUSE for golang files ()
content_store.go Implement FSFE REUSE for golang files ()
hashed_buffer.go Add Debian package registry ()
hashed_buffer_test.go Add Debian package registry ()
multi_hasher.go Implement FSFE REUSE for golang files ()
multi_hasher_test.go Replace fmt.Sprintf with hex.EncodeToString ()