Lorenzo Bolla
b281819cba
Make truthy function less surprising
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
6826efc723
Fix pure-go unittests
...
So they can run on e.g. LXC containers as root, or other conceivable setups.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
370e3cdfea
Fix unittests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
fb8b05e7fd
Fix rebase
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
8c94973cf9
Fix indentation
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
787cc8e3ee
Fix system tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
ff51c46915
More informative return value for task.Process
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
0914cd16af
Use global async flag as fallback on per-request flag
...
This way, if no pre-request flag is specified, the globally configured default
is used.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
9b28d8984f
Configurable background task execution
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
bd4c3a246d
Add new AUTHORS
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
914ddf4859
Fix syntax error
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
2fa3adee1d
Don't use transactions when direct db access is enough
...
For read-only action transactions are not necessary and they risk to deadlock
if multiple go-routines try to read the database.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
fd83c1a5bf
Cap delay to sleep to avoid overflow
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
de2be9b8ae
Sleep between retries to download from http
...
Fix #1
2022-01-27 09:30:14 +01:00
André Roth
209b030502
gpg: fix downloading multiple keys
...
each key needs to be provided as separate argument to gpg1 --recv-keys
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
5a65ce6adb
mirror: add more logging
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
79a7cf864e
mirror: interrupt goroutine when done
...
This should avoid deadlocking when context is destroyed.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
19f7b0fe8d
mirror: increase logging for easier debugging
2022-01-27 09:30:14 +01:00
André Roth
2b7bb24c92
api gpg: show gpg command
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
faf2d588b1
Use verifier from context
2022-01-27 09:30:14 +01:00
André Roth
8e02a03170
fix gpg keys
2022-01-27 09:30:14 +01:00
André Roth
d13de0464e
api: allow renaming repos
2022-01-27 09:30:14 +01:00
André Roth
c0528888f4
log download retries
2022-01-27 09:30:14 +01:00
Oliver Sauder
b4efe6a810
Add db cleanup api
2022-01-27 09:30:14 +01:00
Oliver Sauder
f09a273ad7
Add publish output progress counting remaining number of packages
2022-01-27 09:30:14 +01:00
Oliver Sauder
3cd168c44d
Combine publish list progress into one
2022-01-27 09:30:14 +01:00
Oliver Sauder
b0ab8f417d
Added gpg api so mirror updates are fully functional from api
2022-01-27 09:30:14 +01:00
Oliver Sauder
d7ccf95499
Added mirror api based on task list
2022-01-27 09:30:14 +01:00
Oliver Sauder
6ab5e60833
Add task api and resource locking ability
2022-01-27 09:30:14 +01:00
Oliver Sauder
e63d74dff2
Fixed not running tests
2022-01-27 09:30:14 +01:00
Oliver Sauder
25d7d7c037
Solving progress not safe issue for api
...
Progress is not safe so for api its always nil and
code needs to take care of this
2022-01-27 09:30:14 +01:00
Oliver Sauder
1c7c07ace7
db batch may not be a global resource
...
This way db usage is safe.
2022-01-27 09:30:14 +01:00
Oliver Sauder
f7f42a9cd8
Database changes of resources need to be atomic
2022-01-27 09:30:14 +01:00
Oliver Sauder
1e7731c317
Removed obsolete RWMutexes
2022-01-27 09:30:14 +01:00
Oliver Sauder
208a2151c1
every go routine needs to have its own collection factory
...
this is needed so concurrent reads and writes are possible.
2022-01-27 09:30:14 +01:00
Andrej Shadura
4a6d53e16d
Include AzurePublishEndpoints in the manpage template
...
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk >
2022-01-21 11:46:36 +01:00
Chuan Liu
a778ff8903
Fix the storage string format.
...
Co-authored-by: Andrej Shadura <andrew@shadura.me >
2022-01-21 11:46:36 +01:00
chuan
bb42a2158d
Add support for Azure storage as a publishing backend
...
This adds a new configuration setting: AzurePublishEndpoints, similar
to the existing S3PublishEndpoints and SwiftPublishEndpoints.
For each endpoint, the following has to be defined:
- accountName
- accountKey
- container
- prefix
Azure tests require the following environment variables to be set:
- AZURE_STORAGE_ACCOUNT
- AZURE_STORAGE_ACCESS_KEY
With either of these not set, Azure-specific tests are skipped.
2022-01-21 11:46:36 +01:00
Sylvain Baubeau
ab2f5420c6
Export RemoteRepo package list
2021-11-02 15:08:19 +01:00
Vítězslav Dvořák
174943cd0f
Proposed keyserver changed to functional one #990
2021-11-02 15:01:17 +01:00
Joshua Colson
0bc66032d2
Resolve PR #976 review comments
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
899ed92ebc
Add -json flag to publish list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
129eb8644d
Add -json flag to mirror list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
d582f9bab2
Add Debian 11 keys to test fixture keyring
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
0f1575d5af
Add -json flag to snapshot show|list
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
f9c0d99790
Refactor repo list into json and txt output
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
1f56fb86e3
Add -json output flag to repo list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Ratchanan Srirattanamet
f9d08e1377
.goxc.json: list os/arch explicitly to avoid darwin/386
...
Go 1.15 drops support for darwin/386 GOOS/GOARCH pair [1]. So, we have
to skip this pair, and thus cannot use simple os multiply arch anymore.
Switch to goxc's BuildConstraints config, which uses the same syntax as
Go's build constraint header [2].
[1] https://github.com/golang/go/issues/37610
[2] https://golang.org/cmd/go/#hdr-Build_constraints
2021-04-29 14:41:24 +02:00
Max Bruckner
cbf0416d7e
Filter command: Fix typo Priorioty -> Priority
2021-03-21 09:59:39 +01:00
Andrej Shadura
2422d3ab40
When ETag doesn’t look like MD5, use the value from metadata instead
...
The S3 backend relies on ETag S3 returns being equal to the MD5 of the
object, but it’s not necessarily true. When the value returned clearly
doesn’t look like a valid MD5 hash (length isn’t exactly 32 characters),
attempt to retrieve the MD5 hash possibly stored in the metadata.
We cannot always do this since user-defined metadata isn’t returned by
the ListObjects call, so verifying it for each object is expensive as it
requires one HEAD request per each object.
This commit fixes #923 .
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk >
2021-03-02 13:37:17 +00:00