From c4b436ddee0785952c11f4e647b76527af3add53 Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Fri, 28 Feb 2025 16:29:25 +0000 Subject: [PATCH] Update branched package meta to match the original --- src/upload.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/upload.rs b/src/upload.rs index caf6ed8..6fbfcde 100644 --- a/src/upload.rs +++ b/src/upload.rs @@ -121,7 +121,15 @@ impl ObsDscUploader { } } + let original_meta = client_package.meta().await?; + project = branch_to; + + // Update branched package build meta to match the original + let client_package = client.project(project.clone()).package(package.clone()); + let mut target_meta = client_package.meta().await?; + target_meta.build = original_meta.build.clone(); + client_package.set_meta(&target_meta).await?; } Ok(ObsDscUploader {