Philip Cramer
2f7f726d4c
fix: reject AppStream flag for flat repos instead of silently skipping
2026-04-26 15:04:38 +02:00
Philip Cramer
02423af931
fix: prevent db cleanup from deleting AppStream pool files
2026-04-26 15:04:17 +02:00
Philip Cramer
29c37293b9
feat: wire AppStream support through CLI, API, and publish
2026-04-26 15:04:17 +02:00
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
Ales Bregar
9b523e6bd5
review fix
2026-01-24 10:55:15 +01:00
Ales Bregar
8e739524b0
system test unexpected string fix (would be helpful, but not changing the test just for this)
2026-01-24 10:55:15 +01:00
Ales Bregar
9a90038dd2
- #309 adding gpgKeys config key, accepting array of keyRef, cli args has precedence
...
- #691 adding handling of multiple keyRefs when signing with gpg
2026-01-24 10:55:15 +01:00
Zhang Xiao
a2ffffedc1
Support updating label and origin domain of publish
...
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
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
Juan Calderon-Perez
0021cf876b
Harden latest-only filtering
2025-12-11 07:20:37 -05:00
André Roth
27c15680e8
Merge pull request #1445 from silkeh/fix-db-references
...
Remove corrupt package references in `db recover`
2025-05-01 10:27:42 +02:00
Silke Hofstra
d8a4a28259
Remove corrupt package references in db recover
...
When aptly crashes it is possible to get a corrupt database with a dangling key reference.
This results in an error with 'key not found', eg:
ERROR: unable to load package Pall example-package 1.2.3 778cf6f877bf6e2d: key not found
This change makes `db recover` fix this situation by removing the dangling references.
2025-04-30 12:21:34 +02:00
André Roth
f7057a9517
go1.24: fix lint, unit and system tests
...
- development env: base on debian trixie with go1.24
- lint: run with default config
- fix lint errors
- fix unit tests
- fix system test
2025-04-26 13:29:50 +02:00
André Roth
e028db585f
fix man page
2024-12-21 22:32:50 +01:00
André Roth
c6bb5f76f7
cmd filter: add comment and cleanup
2024-12-21 11:37:15 +01:00
Gordian Schoenherr
9691b0f518
Refactor query reading from file, update docs
...
Add support for @file syntax in more places.
2024-12-19 15:02:10 +09:00
Christof Warlich
005114839a
Generalize to read filter from file or stdin.
2024-12-13 11:24:54 +09:00
Christof Warlich
a5d322252a
Allow reading package query for -filter option from a file.
2024-12-13 11:24:47 +09:00
André Roth
93650efddb
Merge pull request #1404 from schoenherrg/fix/with-sources-ignored
...
Fix `-with-sources` not fetching differently named source packages
2024-12-11 13:01:30 +01:00
André Roth
4e566b4692
fix tests and lint
2024-12-11 12:02:52 +01:00
André Roth
0e0189f0eb
use yaml config file
2024-12-11 12:02:52 +01:00
André Roth
83f7c869f0
doc: improve cmd usage arguments
2024-12-11 10:40:44 +01:00
Gordian Schoenherr
3b785e4165
Refactor Filter options into a struct
...
It was already a lot of options for one method and I am going to add
another one in the next commit.
2024-12-09 13:17:41 +09:00
André Roth
320307f504
graph: do not remove tempfile when opening in viewer
2024-12-04 17:30:27 +01: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
147955c682
Merge pull request #1390 from iofq/master
...
Make HTTP server wait for tasks before shutdown
2024-11-10 15:38:47 +01:00
iofq
840b76228a
add shutdown context unit test
2024-11-09 15:34:35 -06:00
iofq
8436001d5b
Make HTTP server wait for tasks before shutdown
2024-11-08 14:06:23 -06:00
André Roth
eafec74c29
allow to exclude provided packages from list.Search
2024-11-04 17:02:54 +01:00
André Roth
0ceff44421
improve log
2024-11-01 20:01:45 +01:00
André Roth
f79423a4ee
update swagger documentation
2024-11-01 17:48:03 +01:00
Christoph Fiehe
c9309c926c
Command to replace the whole staged source list added.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-11-01 17:48:03 +01:00
Christoph Fiehe
21013a8317
Command descriptions fixed.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
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
3057aed571
Test cases added.
...
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
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
Christoph Fiehe
4195ad90bc
Allow to add a new component to a published repo
...
This commit modifies the behavior of the publish switch method in the way, that also new components can be added to an already published repository. It is no longer necessary to drop and recreate the whole publish.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-09-24 15:43:27 +02:00
André Roth
52faf78324
use /usr/local/etc/aptly.conf config file
...
fixes #1108
2024-09-24 10:14:39 +02:00
André Roth
32a3943821
support ~ in rootDir as home directory
2024-09-24 10:14:39 +02:00
André Roth
a93ccd4100
fix tests
2024-07-03 18:08:58 +02:00
André Roth
c1f7e5fe96
handle GpgDisableVerify and ignore-signatures consistently
...
and be less verbose
2024-07-03 18:08:58 +02:00
André Roth
d16110068c
allow not signed mirrors without InRelease file
2024-07-03 18:08:58 +02:00
André Roth
1a3cfea348
replace io/ioutil
...
fixes golangci-lint errors
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
810df17009
Clean up temporary files when mirroring
...
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
19255debb9
Reduce required usage of LocalPackagePool
...
Several sections of the code *required* a LocalPackagePool, but they
could still perform their operations with a standard PackagePool.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00