From c8c46da61dfadce9366d5390b52c19630833210a Mon Sep 17 00:00:00 2001
From: Andrej Shadura <andrew.shadura@collabora.co.uk>
Date: Fri, 30 May 2025 13:34:19 +0200
Subject: [PATCH] aptly: Make publisher subprocess die if aptly repo update
 fails

Other backends die on error, so should we for the error to be detected
by the caller.

Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
---
 src/backend/bs_publish | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/bs_publish b/src/backend/bs_publish
index 63e241fce8..ccdcf9bdd2 100755
--- a/src/backend/bs_publish
+++ b/src/backend/bs_publish
@@ -2736,7 +2736,7 @@ sub publish {
   if ($repotype{'debian'}) {
     my $aptly_config = BSAptly::aptly_repo_get_config($projid, $repoid);
     if ($aptly_config) {
-	BSAptly::aptly_update_repo($projid, $repoid, $aptly_config, $extrep);
+	BSAptly::aptly_update_repo($projid, $repoid, $aptly_config, $extrep) or die;
     } elsif ($BSConfig::reprepository && $BSConfig::reprepository->{$prp}) {
 	updaterepo_reprepro($prp, $extrep, @changed);
     } else {
-- 
GitLab