Zhang Xiao
e2ebcbb02a
Release file: support Version field
...
https://wiki.debian.org/DebianRepository/Format#Version
The Version field, if specified, shall be the version of the release.
On the other hand, if not set or set to an empty value, the Version
field will not be included in the Release file.
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-03-03 07:38:44 +00:00
André Roth
0db9797c4e
add test
2026-01-16 14:50:09 +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
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
9dffe791ad
Restoring original test sequence
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
14c29ff912
Fixing tests.
...
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
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
Lorenzo Bolla
035d5314b0
Convert tests to Python 3
...
Fix #938
2022-01-27 15:06:33 +01:00
Andrey Smirnov
61e00b5fbd
Test updates for Travis CI
...
Travis is running Trusty with GPG 2.0.x, which is
much different from 2.1.x.
Add tests for default key signing.
Add test for gpg1/2 in functional.
2018-10-10 01:34:58 +03:00
Andrey Smirnov
747b9752ce
Keep checksum of not compressed index file even if it's not uploaded
...
Fixes : #756
2018-07-14 00:17:36 +03:00
Andrey Smirnov
5b85522400
Implement 'legacy' Contents indexes to match Ubuntu <=16.04
...
Another index is created which unifies data for all the components.
This certainly requires more resources as we have to build yet another
index.
2018-04-11 00:57:15 +03:00
Oliver Sauder
b4f3573d11
Add acquire by hash when updating publish
2017-11-30 09:46:02 +01: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
77be7b9e3b
Support for SHA-512 hashes on publishing/downloads.
2016-02-18 12:01:51 +03:00
Andrey Smirnov
933b019f71
Fix -skip-contents + system tests. #142
2015-04-05 21:55:41 +03:00
Andrey Smirnov
10876b99f5
Check for contents file generation. #142
2015-04-02 01:00:28 +03:00
Andrey Smirnov
99f6ffe1ca
Fix system test for content generation. #142
2015-04-02 00:29:49 +03: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
5b8390c644
Uncomment and fix publish updat tests.
2014-08-05 15:58:47 +04:00
Andrey Smirnov
856dd7021c
System tests for publish update empty -> empty. #66
2014-06-11 20:42:13 +04:00
Andrey Smirnov
e554d8befa
Update tests with introduction of Release files under each arch/component. #61
2014-06-07 17:01:37 +04:00
Andrey Smirnov
e3a71c81e1
Both components should contain same architectures. #36
2014-06-06 03:05:22 +04:00
Andrey Smirnov
bf900deb4b
Remove whitespace.
2014-06-06 03:03:58 +04:00
Andrey Smirnov
142387311b
Tests for aptly publish update and multi-component repository. #36
2014-06-06 03:00:44 +04:00
Andrey Smirnov
1200e9cc95
Command aptly publish update: update local repo published in-place. #8
2014-04-22 18:35:20 +04:00