all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox] fix #4868: map missing section field to 'unknown'
@ 2023-07-25  8:31 Fabian Grünbichler
  2023-08-08 12:01 ` [pbs-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Grünbichler @ 2023-07-25  8:31 UTC (permalink / raw)
  To: pbs-devel

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox] fix #4868: map missing section field to 'unknown'
  2023-07-25  8:31 [pbs-devel] [PATCH proxmox] fix #4868: map missing section field to 'unknown' Fabian Grünbichler
@ 2023-08-08 12:01 ` Wolfgang Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2023-08-08 12:01 UTC (permalink / raw)
  To: Fabian Grünbichler; +Cc: pbs-devel

applied, thanks




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-08 12:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25  8:31 [pbs-devel] [PATCH proxmox] fix #4868: map missing section field to 'unknown' Fabian Grünbichler
2023-08-08 12:01 ` [pbs-devel] applied: " Wolfgang Bumiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal