]> git.proxmox.com Git - proxmox.git/log
proxmox.git
3 years agobump proxmox dependency
Fabian Ebner [Fri, 16 Jul 2021 12:36:01 +0000 (14:36 +0200)]
bump proxmox dependency

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agotests: parse and write the result again
Fabian Ebner [Fri, 2 Jul 2021 09:31:24 +0000 (11:31 +0200)]
tests: parse and write the result again

A cheap way to "double" the number of test cases.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobump version to 0.4.0-1
Thomas Lamprecht [Thu, 1 Jul 2021 16:33:18 +0000 (18:33 +0200)]
bump version to 0.4.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosupport quote-word parsing for one-line format
Fabian Ebner [Thu, 1 Jul 2021 13:46:34 +0000 (15:46 +0200)]
support quote-word parsing for one-line format

so that parsing CD ROM repositories with spaces in the name works too.
But it's not limited to that, and should make one-line parsing rather
similar to what APT does (stanza parsing in APT doesn't use
ParseQuoteWord at all AFAICS).

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoavoid backtick unicode symbol in string
Fabian Ebner [Thu, 1 Jul 2021 13:46:33 +0000 (15:46 +0200)]
avoid backtick unicode symbol in string

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobump version to 0.3.1-1
Thomas Lamprecht [Wed, 30 Jun 2021 18:42:57 +0000 (20:42 +0200)]
bump version to 0.3.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoslightly adapt repository text
Thomas Lamprecht [Wed, 30 Jun 2021 18:42:31 +0000 (20:42 +0200)]
slightly adapt repository text

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agostandard repos: allow conversion from handle and improve information
Fabian Ebner [Wed, 30 Jun 2021 15:07:53 +0000 (17:07 +0200)]
standard repos: allow conversion from handle and improve information

Add a description for the handle, which can be useful to display
alongside the name. The descriptions are essentially the first
sentence from PVE's "Package Repositories" docs, but without the
product name.

Also drop the " Repository" suffix from the names, as it's not useful,
but can be ugly: e.g. for the UI when the label already is
'Repository:'.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobump version to 0.3.0-1
Thomas Lamprecht [Wed, 30 Jun 2021 11:29:35 +0000 (13:29 +0200)]
bump version to 0.3.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: upload: switch product to devel and dist to bullseye
Thomas Lamprecht [Wed, 30 Jun 2021 11:34:27 +0000 (13:34 +0200)]
buildsys: upload: switch product to devel and dist to bullseye

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agostandard repos: drop product acronym from repo name
Fabian Ebner [Wed, 30 Jun 2021 10:20:18 +0000 (12:20 +0200)]
standard repos: drop product acronym from repo name

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agocheck: return 'origin' property instead of 'badge' for official host
Fabian Ebner [Wed, 30 Jun 2021 10:20:17 +0000 (12:20 +0200)]
check: return 'origin' property instead of 'badge' for official host

which is obtained from the cached InRelease file and also works for
mirrors, host aliases, direct IPs.

The has_official_uri function was replaced by origin_from_uris.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoadd get_cached_origin method and an initial config module
Fabian Ebner [Wed, 30 Jun 2021 10:20:16 +0000 (12:20 +0200)]
add get_cached_origin method and an initial config module

Allows obtaining the 'Origin' property from the cached InRelease file.

Used the once_cell crate for the config module, because it is already
used in proxmox-backup and seemed to be the right fit here.

For now, the config module is just used to be able to override the
path for the test environment, but those are actual APT config
variables, and in the future, it can be extended and used to actually
parse the apt.conf(.d/*) on the system.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobump version to 0.2.0-1
Fabian Ebner [Wed, 23 Jun 2021 13:38:58 +0000 (15:38 +0200)]
bump version to 0.2.0-1

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoadd handling of Proxmox standard repositories
Fabian Ebner [Wed, 23 Jun 2021 13:38:57 +0000 (15:38 +0200)]
add handling of Proxmox standard repositories

Get handles for the available repositories along with their current
configuration status and make it possible to add them.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoadd more functions to check repositories
Fabian Ebner [Wed, 23 Jun 2021 13:38:56 +0000 (15:38 +0200)]
add more functions to check repositories

Currently includes check for suites and check for official URIs

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoadd files for Debian packaging
Fabian Ebner [Wed, 23 Jun 2021 13:38:55 +0000 (15:38 +0200)]
add files for Debian packaging

The Makefile is based on the one from Mira's conntrack series, as it already got
some review.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoinitial commit
Fabian Ebner [Wed, 23 Jun 2021 13:38:54 +0000 (15:38 +0200)]
initial commit

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>