b0b31bc593
feat(packages): expose package file properties in the package files API ( #40066 )
...
Package files carry type specific properties like `debian.distribution`,
`debian.component`, `rpm.group` or `alpine.branch` that decide where a
file lives in a registry, but the API never returned them. A client
listing `GET /packages/{owner}/{type}/{name}/{version}/files` could not
tell which distribution or component a file belongs to, or tell apart
same-named files in different ones. Tools copying packages between
instances, like https://gitea.com/gitea/importer , need them to re-upload
a file to the same place.
This adds a `properties` map to `PackageFile`, limited to the properties
that locate a file. Internal ones like the rpm, alpine, arch and conda
metadata or the Debian control file stay hidden, as they can be many MiB
per file.
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-10-29 18:10:36 +00:00
..
2026-10-24 01:15:31 +00:00
2026-10-18 12:56:04 +00:00
2026-09-26 22:52:19 +00:00
2026-09-26 07:42:36 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 15:25:47 +08:00
2026-10-24 13:48:19 +00:00
2026-10-18 12:56:04 +00:00
2026-09-30 21:42:07 -06:00
2026-09-26 08:01:41 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-22 01:48:49 +00:00
2026-10-24 13:48:19 +00:00
2026-10-18 07:08:55 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-08-07 20:56:40 -07:00
2026-10-24 13:48:19 +00:00
2026-07-25 21:31:19 +00:00
2026-10-22 01:48:49 +00:00
2026-10-14 19:34:46 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-06-27 12:09:01 +00:00
2026-08-29 07:50:04 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-06-10 17:34:10 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-09-06 09:49:27 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-27 21:40:42 +01:00
2026-10-24 13:48:19 +00:00
2026-10-21 18:52:33 +08:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-27 21:40:42 +01:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-07-16 11:51:36 +02:00
2026-10-24 13:48:19 +00:00
2026-07-28 17:04:22 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-29 18:10:36 +00:00
2026-10-19 00:34:01 +00:00
2026-10-24 13:48:19 +00:00
2026-08-09 12:55:43 +00:00
2026-10-24 13:48:19 +00:00
2026-10-01 07:50:47 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-08-24 07:28:17 +00:00
2026-10-24 13:48:19 +00:00
2026-08-24 18:26:10 +00:00
2026-10-24 13:48:19 +00:00
2026-08-24 07:28:17 +00:00
2026-10-24 13:48:19 +00:00
2026-10-23 01:53:45 +00:00
2026-10-23 01:53:45 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-19 09:15:41 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-07-28 17:04:22 +00:00
2026-08-03 06:41:27 +00:00
2026-08-03 06:41:27 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 00:18:51 +00:00
2026-10-18 12:56:04 +00:00
2026-10-24 13:48:19 +00:00
2026-09-29 14:43:36 +02:00
2026-10-24 13:48:19 +00:00
2026-10-18 12:56:04 +00:00
2026-10-24 13:48:19 +00:00
2026-08-23 06:35:55 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-19 00:34:01 +00:00
2026-06-08 16:58:42 +08:00
2026-10-24 13:48:19 +00:00
2026-10-19 00:34:01 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-08-22 08:08:36 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-08-14 02:15:33 +00:00
2026-10-24 13:48:19 +00:00
2026-10-14 07:19:49 +00:00
2026-10-24 13:48:19 +00:00
2026-06-29 15:10:47 +00:00
2026-10-24 13:48:19 +00:00
2026-10-02 21:08:14 +02:00
2026-10-24 13:48:19 +00:00
2026-10-04 16:26:14 +08:00
2026-10-24 13:48:19 +00:00
2026-10-24 01:15:31 +00:00
2026-10-25 21:41:06 +00:00
2026-10-24 13:48:19 +00:00
2026-10-28 00:33:35 +00:00
2026-10-18 12:56:04 +00:00
2026-10-05 05:25:54 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-19 00:34:01 +00:00
2026-10-24 13:48:19 +00:00
2026-08-29 19:54:07 +00:00
2026-10-24 13:48:19 +00:00
2026-06-18 12:02:11 +00:00
2026-10-24 13:48:19 +00:00
2026-10-18 12:56:04 +00:00
2026-07-12 17:14:09 +00:00
2026-10-26 14:55:06 +00:00
2026-07-31 11:05:41 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-28 20:38:45 +08:00
2026-10-16 08:29:25 -07:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-08-21 07:28:23 +00:00
2026-08-17 20:30:24 +00:00
2026-10-24 13:48:19 +00:00
2026-08-17 20:30:24 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-09-02 17:07:04 +00:00
2026-10-14 12:07:31 +00:00
2026-10-19 09:15:41 +00:00
2026-10-24 13:48:19 +00:00
2026-10-06 17:28:28 +00:00
2026-10-19 00:34:01 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-28 20:38:45 +08:00
2026-08-10 01:25:31 +00:00
2026-10-24 13:48:19 +00:00
2026-10-19 00:34:01 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 01:15:31 +00:00
2026-10-28 20:38:45 +08:00
2026-10-28 09:19:35 +00:00
2026-10-03 02:28:34 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-02 21:08:14 +02:00
2026-10-24 13:48:19 +00:00
2026-10-24 13:48:19 +00:00
2026-10-02 22:21:41 +08:00
2026-08-27 16:34:44 +00:00
2026-10-24 13:48:19 +00:00
2026-10-24 16:27:56 +08:00
2026-10-24 13:48:19 +00:00
2026-10-05 19:12:22 +02:00
2026-10-29 05:18:17 +00:00
2026-10-04 16:26:14 +08:00
2026-10-19 00:34:01 +00:00