forked from vieter-v/vieter
Compare commits
6 Commits
ff9ff9bf99
...
4b6a661d71
| Author | SHA1 | Date |
|---|---|---|
|
|
4b6a661d71 | |
|
|
3b15066329 | |
|
|
7e142cb6c7 | |
|
|
207344a99d | |
|
|
aacadca7a8 | |
|
|
dec2e9d759 |
|
|
@ -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)
|
## [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
|
* Better config system
|
||||||
* Support for both a config file & environment variables
|
* 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
|
* All routes now return proper JSON where applicable & the correct status
|
||||||
codes
|
codes
|
||||||
|
|
||||||
## Added
|
### Added
|
||||||
|
|
||||||
* Very basic build system
|
* Very basic build system
|
||||||
* Build is triggered by separate cron container
|
* 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 repositories
|
||||||
* Support for multiple architectures per repository
|
* Support for multiple architectures per repository
|
||||||
|
|
||||||
## Fixed
|
### Fixed
|
||||||
|
|
||||||
* Each package can now only have one version in the repository at once
|
* Each package can now only have one version in the repository at once
|
||||||
(required by Pacman)
|
(required by Pacman)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ fn main() {
|
||||||
mut app := cli.Command{
|
mut app := cli.Command{
|
||||||
name: 'vieter'
|
name: 'vieter'
|
||||||
description: 'Vieter is a lightweight implementation of an Arch repository server.'
|
description: 'Vieter is a lightweight implementation of an Arch repository server.'
|
||||||
version: '0.1.0'
|
version: '0.2.0'
|
||||||
flags: [
|
flags: [
|
||||||
cli.Flag{
|
cli.Flag{
|
||||||
flag: cli.FlagType.string
|
flag: cli.FlagType.string
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ fn (mut app App) put_package(repo string) web.Result {
|
||||||
if !res.added {
|
if !res.added {
|
||||||
os.rm(pkg_path) or { app.lerror("Failed to remove download '$pkg_path': $err.msg") }
|
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.'))
|
return app.json(http.Status.bad_request, new_response('File already exists.'))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue