Zhang Xiao
a6f0c1b915
Support updating label and origin domain of publish
...
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-01-04 14:07:49 +01:00
Roman Lebedev
a4cc9211d6
InRelease file: support Signed-By field
...
https://wiki.debian.org/DebianRepository/Format#Signed-By says:
> **Signed-By**
> An optional field containing a comma separated list of
> OpenPGP key fingerprints to be used for validating
> the next Release file. The fingerprints must consist
> only of hex digits and may not contain spaces.
> The fingerprint specifies either the key the Release file
> must be signed with or the key the signature key must be
> a subkey of. The later match can be disabled by appending
> an exclamation mark to the fingerprint.
>
> If the field is present, a client should only accept future updates
> to the repository that are signed with keys listed in the field.
> The field should be ignored if the Valid-Until field is not present
> or if it is expired.
For both the CLI tools and JSON, the field is taken as a string verbatim.
When specified, we must also provide `Valid-Until` field,
and i'm not sure there is an 'infinity' value for it,
so 100 years will have to do?
Fixes https://github.com/aptly-dev/aptly/issues/1497
2025-12-30 06:06:48 +03:00
Mauro Regli
1357d246d8
rename addon files to skel files
2024-11-17 14:09:37 +01:00
Mauro Regli
c75c2c7594
pass down addonpath from api and cmd context
2024-11-17 14:09:37 +01:00
André Roth
f79423a4ee
update swagger documentation
2024-11-01 17:48:03 +01:00
Christoph Fiehe
f8f28e9554
Fixing tests and fix cleanup.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
ac5ecf946d
Cleanup improved and code redundant code removed.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
d87d8bac92
Fix test cases.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
bd64232eb6
Allow management of components
...
This commit allows to add, remove and update components of published repositories without the need to recreate them.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
André Roth
861260198a
publish: persist multidist flag
2024-10-08 22:28:12 +02:00
Noa Resare
b4cd86aa14
Introduce option multi-dist to the publish commands
...
This change makes it possible to publish multiple distributions
with packages named the same but with different content by changing
structure of the generated pool hierarchy. The option not enabled
by default as this changes the structure of the output which could
break the expectations of other tools.
2024-06-15 11:27:26 +02:00
Sjoerd Simons
f61514edaf
Allow disabling bzip2 compression for index files
...
Using bzip2 generates smaller index files (roughly 20% smaller Packages
files) but it comes with a big performance penalty. When publishing a
debian mirror snapshot (amd64, arm64, armhf, source) without contents
skipping bzip speeds things up around 1.8 times.
```
$ hyperfine -w 1 -L skip-bz2 true,false -m 3 -p "aptly -config aptly.conf publish drop bullseye || true" "aptly -config aptly.conf publish snapshot --skip-bz2={skip-bz2} --skip-contents --skip-signing bullseye"
Benchmark 1: aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
Time (mean ± σ): 35.567 s ± 0.307 s [User: 39.366 s, System: 10.075 s]
Range (min … max): 35.311 s … 35.907 s 3 runs
Benchmark 2: aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye
Time (mean ± σ): 64.740 s ± 0.135 s [User: 68.565 s, System: 10.129 s]
Range (min … max): 64.596 s … 64.862 s 3 runs
Summary
'aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye' ran
1.82 ± 0.02 times faster than 'aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye'
```
Allow skipping bz2 creation for setups where faster publishing is more
important then Package file size.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-22 11:25:45 +02: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
Stephan Eicher
aa02c5cbe9
Fix #827 - passhprase typos
2019-09-02 23:26:37 +03:00
Andrey Smirnov
b8c5303fdb
Fix paths after repository transfer to aptly-dev
2018-04-18 21:19:43 +03:00
Ludovico Cavedon
d6a3917141
Add -skip-cleanup option for publish commands.
...
Allow skipping unreferenced files cleanup on publish switch/update/drop
via the -skip-cleanup command line option.
Also support API SkipCleanup parameter.
Fixes #570 .
2017-08-15 19:08:17 -07:00
Andrey Smirnov
470165a419
Enable goconst & interfacer linters
2017-05-17 00:53:10 +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
Andrey Smirnov
933b019f71
Fix -skip-contents + system tests. #142
2015-04-05 21:55:41 +03:00
Andrey Smirnov
6293ca3206
Add -skip-contents flag. #142
2015-04-05 21:27:35 +03:00
Andrey Smirnov
d586f31247
Move ParsePrefix into common code. #116
2014-12-23 00:50:28 +03:00
Andrey Smirnov
a85aa11ecd
Update flag description/include it everywhere. #122
2014-10-10 17:50:08 +04:00
Dmitrii Kashin
59055d7fbd
Add batch flag for publish commands
2014-10-10 04:04:44 +04:00
Andrey Smirnov
8a787d2c35
Refactor by separating AptlyContext into separate package. #116
2014-10-06 21:54:15 +04:00
Andrey Smirnov
97158ef37b
Support for --passphrase & --passphrase-file arguments on publishing. #94
2014-09-01 15:13:07 +04:00
Andrey Smirnov
bb6593d21e
Add -force-overwrite flag to publish update, switch, snapshot and repo commands. #90
...
Includes new and updated system tests.
2014-08-05 17:01:18 +04:00
Andrey Smirnov
d558791070
Add -force-overwrite command flag. #90
2014-08-05 15:47:38 +04:00
Andrey Smirnov
bf91744078
<endpoint> in command usage. #15
2014-07-28 15:03:55 +04:00
Andrey Smirnov
915b0d1697
Integrate PublishedRepos with storages & context. #15
2014-07-21 17:43:12 +04:00
Andrey Smirnov
9a34b4ff1f
Update commands to handle multiple components repositories. #36
2014-06-04 17:43:16 +04:00
Andrey Smirnov
7192049c16
Update to new PublishedRepo with multiple components. #36
...
Multiple component publishing doesn't work yet, but old features are working.
2014-06-03 17:09:00 +04:00
Andrey Smirnov
05a42f4cba
aptly exits with 2 on command/flag parse error. #52
2014-05-16 00:22:51 +04:00
Andrey Smirnov
1200e9cc95
Command aptly publish update: update local repo published in-place. #8
2014-04-22 18:35:20 +04:00