Compare commits

...

6 Commits

3 changed files with 7 additions and 5 deletions

View File

@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://git.rustybever.be/Chewing_Bever/vieter)
## Changed
## [0.2.0](https://git.rustybever.be/Chewing_Bever/vieter/src/tag/0.2.0)
### Changed
* Better config system
* Support for both a config file & environment variables
@ -17,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* All routes now return proper JSON where applicable & the correct status
codes
## Added
### Added
* Very basic build system
* Build is triggered by separate cron container
@ -32,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Support for multiple repositories
* Support for multiple architectures per repository
## Fixed
### Fixed
* Each package can now only have one version in the repository at once
(required by Pacman)

View File

@ -10,7 +10,7 @@ fn main() {
mut app := cli.Command{
name: 'vieter'
description: 'Vieter is a lightweight implementation of an Arch repository server.'
version: '0.1.0'
version: '0.2.0'
flags: [
cli.Flag{
flag: cli.FlagType.string

View File

@ -97,7 +97,7 @@ fn (mut app App) put_package(repo string) web.Result {
if !res.added {
os.rm(pkg_path) or { app.lerror("Failed to remove download '$pkg_path': $err.msg") }
app.lwarn("Duplicate package '$res.pkg.full_name()' in repo '$repo ($res.pkg.info.arch)'.")
app.lwarn("Duplicate package '$res.pkg.full_name()' in repo '$repo'.")
return app.json(http.Status.bad_request, new_response('File already exists.'))
}