[projects/pld-builder.new] file_sender: keep files whose target protocol is unsupported

arekm arekm at pld-linux.org
Mon Oct 26 17:16:46 CET 2026


commit bfb4a91a8a6a7a729d48c87e181a9cbc86c16ec4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 24 13:52:23 2026 +0200

    file_sender: keep files whose target protocol is unsupported
    
    A url typo in builder.conf deleted queued files unsent.

 PLD_Builder/file_sender.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/PLD_Builder/file_sender.py b/PLD_Builder/file_sender.py
index 51e13c1..0efa9b0 100644
--- a/PLD_Builder/file_sender.py
+++ b/PLD_Builder/file_sender.py
@@ -104,11 +104,13 @@ def send_file(src, target):
         m = re.match(r'(http|https)://.*', target)
         if m:
             return post_file(src, target)
-        log.alert("unsupported protocol: %s" % target)
+        # keep the file queued: dropping it would lose it to a builder.conf typo
+        msg = f"unsupported protocol: {target}"
+        log.alert(msg)
+        return msg
     except OSError as e:
         log.error("send_file(%s, %s): %s" % (src, target, e))
         return str(e) or repr(e)
-    return None
 
 def maybe_flush_queue(dir):
     retry_delay = 0
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ce9feb3c796ed049b6dd260a50d94d80feb1656d



More information about the pld-cvs-commit mailing list