From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox] fix #4868: map missing section field to 'unknown'
Date: Tue, 25 Jul 2023 10:31:10 +0200 [thread overview]
Message-ID: <20230725083110.2072773-1-f.gruenbichler@proxmox.com> (raw)
needed for supporting some third-party repositories.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
Notes:
while the Raw variant is marked as pub, it's not actually used outside of the
crate, so only technically a breaking change.
proxmox-offline-mirror will need a bump+rebuild for the bug to be actually fixed in practice!
proxmox-apt/src/deb822/packages_file.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxmox-apt/src/deb822/packages_file.rs b/proxmox-apt/src/deb822/packages_file.rs
index 90b21c6..b3c84b0 100644
--- a/proxmox-apt/src/deb822/packages_file.rs
+++ b/proxmox-apt/src/deb822/packages_file.rs
@@ -13,7 +13,7 @@ pub struct PackagesFileRaw {
pub package: String,
pub source: Option<String>,
pub version: String,
- pub section: String,
+ pub section: Option<String>,
pub priority: String,
pub architecture: String,
pub essential: Option<String>,
@@ -84,7 +84,7 @@ impl TryFrom<PackagesFileRaw> for PackageEntry {
size: value.size.parse::<usize>()?,
installed_size,
checksums: CheckSums::default(),
- section: value.section,
+ section: value.section.unwrap_or("unknown".to_owned()),
};
if let Some(md5) = value.md5_sum {
--
2.39.2
next reply other threads:[~2023-07-25 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 8:31 Fabian Grünbichler [this message]
2023-08-08 12:01 ` [pbs-devel] applied: " Wolfgang Bumiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230725083110.2072773-1-f.gruenbichler@proxmox.com \
--to=f.gruenbichler@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox