From 57f6c5f6f6b0f9a8921c49c216fcf65768abc2cc Mon Sep 17 00:00:00 2001
From: Henrik Triem <henrik.triem@icinga.com>
Date: Fri, 27 Jan 2023 18:17:47 +0000
Subject: [PATCH] Adjust upload scripts

---
 icinga-build-upload-aptly              | 4 ++--
 icinga-build-upload-aptly-subscription | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/icinga-build-upload-aptly b/icinga-build-upload-aptly
index 731331f..52b698a 100755
--- a/icinga-build-upload-aptly
+++ b/icinga-build-upload-aptly
@@ -46,11 +46,11 @@ def detect_deb(path):
     if len(source) == 0:
         return []
     elif len(source) != 1:
-        raise StandardError, 'There more than one source DSC in ' + path
+        raise StandardError, "There more than one source DSC in %s" % path
 
     files = source + tarballs + changes + debs
     if len(files) < 2:
-        raise StandardError, 'There should be at least 2 files in ' + path
+        raise StandardError, "There should be at least 2 files in %s" % path
 
     return files
 
diff --git a/icinga-build-upload-aptly-subscription b/icinga-build-upload-aptly-subscription
index 7af00e1..ec6ea83 100755
--- a/icinga-build-upload-aptly-subscription
+++ b/icinga-build-upload-aptly-subscription
@@ -46,11 +46,11 @@ def detect_deb(path):
     if len(source) == 0:
         return []
     elif len(source) != 1:
-        raise StandardError, 'There more than one source DSC in ' + path
+        raise StandardError, "There more than one source DSC in %s" % path
 
     files = source + tarballs + changes + debs
     if len(files) < 2:
-        raise StandardError, 'There should be at least 2 files in ' + path
+        raise StandardError, "There should be at least 2 files in %s" % path
 
     return files
 
-- 
GitLab