Andrey Smirnov
77d7c3871a
Consistently use transactions to update database
...
For any action which is multi-step (requires updating more than 1 DB
key), use transaction to make update atomic.
Also pack big chunks of updates (importing packages for importing and
mirror updates) into single transaction to improve aptly performance and
get some isolation.
Note that still layers up (Collections) provide some level of isolation,
so this is going to shine with the future PRs to remove collection
locks.
Spin-off of #459
2019-08-11 00:11:53 +03:00
Oliver Sauder
108b0ea226
Add support to mirror non package installer files
2018-07-06 15:02:37 +02:00
Oliver Sauder
f1882cfe2c
Expose repo include through API
2018-06-19 15:39:09 +02:00
Andrey Smirnov
b8c5303fdb
Fix paths after repository transfer to aptly-dev
2018-04-18 21:19:43 +03:00
Andrey Smirnov
0e9f966dd1
Fix up other code to support new GPG provider structure
2017-07-21 01:01:58 +03:00
Andrey Smirnov
1be8d39105
Refactor GPG signer/verifier
...
Goal is to make it easier to plug in another implementation.
2017-05-23 02:54:56 +03:00
Andrey Smirnov
470165a419
Enable goconst & interfacer linters
2017-05-17 00:53:10 +03:00
Andrey Smirnov
5ce6bf8718
Enable vetshadow linter
2017-05-04 23:00:13 +03:00
Andrey Smirnov
bae3f949b4
Enable gosimple and ineffasign linters
2017-04-27 18:34:30 +03:00
Andrey Smirnov
516dd7b044
Switch to gometalinter
...
Only small amount of required checks is enabled,
plan is to enable more linters as issues are fixed in the code.
2017-03-23 01:51:08 +03:00
Szymon Sobik
1b80d55ea4
since -dbgsym is for each binary package use that for PackageQuery
2017-03-08 10:31:44 +01:00
Szymon Sobik
a0832adfa5
include dbgsym packages
...
fixes #331
2017-03-07 17:06:59 +01:00
Andrey Smirnov
d7665119e4
Few more fixes.
2016-03-28 13:44:19 +03:00
Andrey Smirnov
587086beb4
Misc style and simple mistakes fixes.
2016-03-28 13:34:05 +03:00
Andrey Smirnov
d04f08c1cf
Correctly handle multine fields in Release/non-Release files. #266
2015-06-26 03:07:33 +03:00
Andrey Smirnov
c573746896
Refactor to get Keys from Changes. #71
2015-03-19 01:36:39 +03:00
Andrey Smirnov
bc68513708
Implementation of PackageLike interface for Changes. #71
2015-03-19 00:26:18 +03:00
Andrey Smirnov
22c656d18e
Style fix [ci skip]. #71
2015-03-18 23:27:21 +03:00
Andrey Smirnov
782ac1a36a
ChangesFile can produce Query each package file should satisfy. #71
2015-03-18 22:19:12 +03:00
Andrey Smirnov
4a57fe3c39
Refactoring: make gpg verification return missing/good key IDs. #71
...
Eliminate "hint" on missing keys which doesn't apply to .changes.
Would be good to eventually stop using GPG and start calling golang.org/x/crypto/openpgp
2015-03-18 21:34:54 +03:00
Andrey Smirnov
90d3b623b4
Check file size as well as checksums. #71
2015-03-17 00:01:58 +03:00
Andrey Smirnov
925882b253
Collect .changes file in directory hiearchy. #71
2015-03-15 21:26:58 +03:00
Andrey Smirnov
2f3b5f5a51
Refactor Changes structure, new method prepare to verify checksums and copy files. #71
2015-03-15 18:16:11 +03:00
Andrey Smirnov
a7103623af
.changes files parsing. #71
2015-03-13 21:46:32 +03:00