]> git.proxmox.com Git - proxmox-apt.git/log
proxmox-apt.git
11 months agoThis repository was moved into the `proxmox.git` repository master
Wolfgang Bumiller [Wed, 24 May 2023 09:27:52 +0000 (11:27 +0200)]
This repository was moved into the `proxmox.git` repository

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
18 months agobump version to 0.9.3-1
Thomas Lamprecht [Wed, 19 Oct 2022 14:17:16 +0000 (16:17 +0200)]
bump version to 0.9.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agodeb822: source index support
Fabian Grünbichler [Tue, 18 Oct 2022 09:20:36 +0000 (11:20 +0200)]
deb822: source index support

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
 [ T: commit Sources for test & fix white space errors ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agopackages file: add section field
Fabian Grünbichler [Tue, 18 Oct 2022 09:20:35 +0000 (11:20 +0200)]
packages file: add section field

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
18 months agocargo fmt
Fabian Grünbichler [Wed, 12 Oct 2022 08:42:50 +0000 (10:42 +0200)]
cargo fmt

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
18 months agoclippy fixes
Fabian Grünbichler [Wed, 12 Oct 2022 08:41:42 +0000 (10:41 +0200)]
clippy fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19 months agod/control: update
Thomas Lamprecht [Fri, 16 Sep 2022 12:19:07 +0000 (14:19 +0200)]
d/control: update

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agobump version to 0.9.2-1
Thomas Lamprecht [Fri, 16 Sep 2022 12:17:31 +0000 (14:17 +0200)]
bump version to 0.9.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agorelease: fix typo in 'Acquire-By-Hash'
Fabian Grünbichler [Thu, 15 Sep 2022 13:09:17 +0000 (15:09 +0200)]
release: fix typo in 'Acquire-By-Hash'

to allow detection of repositories that support downloading indices via
their hash instead of their filename.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19 months agorelease: add 'architecture' helper
Fabian Grünbichler [Thu, 15 Sep 2022 13:09:15 +0000 (15:09 +0200)]
release: add 'architecture' helper

which returns if a file reference is architecture specific, and for
which architecture it is relevant.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19 months agorelease: add Commands file reference type
Fabian Grünbichler [Thu, 15 Sep 2022 13:09:13 +0000 (15:09 +0200)]
release: add Commands file reference type

used by command-not-found to lookup which package ships which command.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19 months agobump version to 0.9.1-1
Fabian Grünbichler [Tue, 6 Sep 2022 08:34:05 +0000 (10:34 +0200)]
bump version to 0.9.1-1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
19 months agoadd ceph quincy repositories
Aaron Lauterer [Tue, 2 Aug 2022 12:59:27 +0000 (14:59 +0200)]
add ceph quincy repositories

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
20 months agorelease: add proper error message
Fabian Grünbichler [Fri, 5 Aug 2022 09:28:58 +0000 (11:28 +0200)]
release: add proper error message

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 months agocleanup non-closure parse helpers
Wolfgang Bumiller [Fri, 5 Aug 2022 07:22:17 +0000 (09:22 +0200)]
cleanup non-closure parse helpers

The TryFrom impl is already massive enough as it is.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
20 months agorelease-file: improve invalid file-reference handling
Fabian Grünbichler [Thu, 4 Aug 2022 09:43:50 +0000 (11:43 +0200)]
release-file: improve invalid file-reference handling

if we encounter a file reference pointing to a component that is not
contained in the componenents list, we can just ignore it as unknown.
only treat parsing errors for references pointing to known components as
actual errors.

this currently triggers with (In)Release files for debian-updates and
debian-security, which reference (empty) files for a "non-free-firmware"
component that is not listed in the `Components` field of the release
file.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agobump version to 0.9.0-1
Thomas Lamprecht [Thu, 21 Jul 2022 11:25:24 +0000 (13:25 +0200)]
bump version to 0.9.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoclippy fixes
Fabian Grünbichler [Tue, 5 Apr 2022 13:08:35 +0000 (15:08 +0200)]
clippy fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agoAptRepositoryFile: make path optional
Fabian Grünbichler [Tue, 5 Apr 2022 13:07:43 +0000 (15:07 +0200)]
AptRepositoryFile: make path optional

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 months agobump version to 0.8.1-1
Thomas Lamprecht [Thu, 21 Jul 2022 10:08:27 +0000 (12:08 +0200)]
bump version to 0.8.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agodeb822 checksums: factor out hash equality check into macro
Thomas Lamprecht [Thu, 21 Jul 2022 10:00:00 +0000 (12:00 +0200)]
deb822 checksums: factor out hash equality check into macro

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoadd test files for deb822 module
Fabian Grünbichler [Tue, 5 Apr 2022 13:09:03 +0000 (15:09 +0200)]
add test files for deb822 module

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agoadd module for parsing Packages and Release files
Fabian Grünbichler [Tue, 5 Apr 2022 13:08:35 +0000 (15:08 +0200)]
add module for parsing Packages and Release files

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 months agofile: add pre-parsed content variant
Fabian Grünbichler [Tue, 5 Apr 2022 13:07:43 +0000 (15:07 +0200)]
file: add pre-parsed content variant

to allow usage with in-memory contents instead of actual files.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocheck suites: add special check for Debian security repository
Fabian Ebner [Tue, 18 Jan 2022 12:48:22 +0000 (13:48 +0100)]
check suites: add special check for Debian security repository

since the suffix was changed with Debian Bullseye.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoclippy fixes
Fabian Ebner [Tue, 18 Jan 2022 12:48:21 +0000 (13:48 +0100)]
clippy fixes

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupgrade to edition 2021
Fabian Ebner [Tue, 18 Jan 2022 12:48:20 +0000 (13:48 +0100)]
upgrade to edition 2021

std::convert::{TryFrom, TryInto} are now part of the prelude.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupdate to proxmox split and bump version to 0.8.0-1
Wolfgang Bumiller [Fri, 8 Oct 2021 10:18:13 +0000 (12:18 +0200)]
update to proxmox split and bump version to 0.8.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump versionto 0.7.0-1
Wolfgang Bumiller [Tue, 24 Aug 2021 13:39:15 +0000 (15:39 +0200)]
bump versionto 0.7.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump version to 0.6.0-1
Thomas Lamprecht [Thu, 29 Jul 2021 16:07:00 +0000 (18:07 +0200)]
bump version to 0.6.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd type DebianCodename
Fabian Ebner [Thu, 29 Jul 2021 12:25:52 +0000 (14:25 +0200)]
add type DebianCodename

which allows to get rid of an possible error with check_suites, and
easily detect unexpected values with get_current_release_codename.

The check_repos function needs to be adapted, since the type does
not include suite names like oldstable,experimental,etc.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agorepo: remove has_suite_variant helper
Fabian Ebner [Thu, 29 Jul 2021 12:25:51 +0000 (14:25 +0200)]
repo: remove has_suite_variant helper

by exchanging loops in the check_suites function, which was the only
user. Exchanging loops also helps for introducing a type for Debian condenames.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agocheck repos: have caller specify the current suite
Fabian Ebner [Thu, 29 Jul 2021 12:25:50 +0000 (14:25 +0200)]
check repos: have caller specify the current suite

Like that, a potential error is further up the stack, and it's more
consistent with what the standard_repository functions do.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agorepo: make suite_variant helper more general
Fabian Ebner [Thu, 29 Jul 2021 12:25:49 +0000 (14:25 +0200)]
repo: make suite_variant helper more general

use the first appearance of '-' or '/' to detect the variant instead
of keeping a list of possible variants, which would need to include
things like "-proposed-updates-debug".

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agostandard repos: add suite parameter for stricter detection
Fabian Ebner [Thu, 29 Jul 2021 12:25:48 +0000 (14:25 +0200)]
standard repos: add suite parameter for stricter detection

Require that the suite matches too when detecting standard
repositories, since no or invalid updates will be obtained when the
suite is wrong. Thus, it should not be considered to be the same
repository.

Add the parameter for get_standard_repository too, so that the two
related calls have more similar parameters, and the detection of the
current release code name can be done once in the caller once.

This also will fix an issue with the front-end, where adding a
standard repository would end up just enabling an already present
repository with the wrong suite.

Reported-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobuildsys: indent continued command
Thomas Lamprecht [Tue, 20 Jul 2021 16:08:49 +0000 (18:08 +0200)]
buildsys: indent continued command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocargo: disable default-features for proxmox
Thomas Lamprecht [Tue, 20 Jul 2021 15:53:08 +0000 (17:53 +0200)]
cargo: disable default-features for proxmox

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodepend on proxmox 0.12.0, bump version to 0.5.1-1
Dietmar Maurer [Tue, 20 Jul 2021 11:51:51 +0000 (13:51 +0200)]
depend on proxmox 0.12.0, bump version to 0.5.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 0.5.0-1
Thomas Lamprecht [Fri, 16 Jul 2021 14:19:00 +0000 (16:19 +0200)]
bump version to 0.5.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocode cleanup: use contains()
Fabian Ebner [Mon, 5 Jul 2021 13:50:28 +0000 (15:50 +0200)]
code cleanup: use contains()

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agostandard repo detection: handle alternative URI for PVE repos
Fabian Ebner [Fri, 16 Jul 2021 12:36:02 +0000 (14:36 +0200)]
standard repo detection: handle alternative URI for PVE repos

For PVE, URIs without the final "/pve" are also valid.

Make the single URL response a vector and iterate over it, lower
index is preferred.

Reported in the community forum:
https://forum.proxmox.com/threads/pve-7-0-9-no-proxmox-ve-repository-enabled.92427/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
[ Thomas: extend commit message slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>