]>
git.proxmox.com Git - proxmox-apt.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Fabian Ebner [Wed, 23 Jun 2021 13:38:54 +0000 (15:38 +0200)]
initial commit
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>