#1126057 sbuild tries to download orig.tar.gz and removes input .dsc file if no .orig.tar.gz is provided

#1126057#5
Date:
2026-01-21 11:27:54 UTC
From:
To:
$ ls -l
total 196
-rw-rw-r-- 1 mjt mjt 190444 Jan 21 12:22 samba_4.24.0~rc1+dfsg-3.debian.tar.xz
-rw-rw-r-- 1 mjt mjt   6116 Jan 21 12:22 samba_4.24.0~rc1+dfsg-3.dsc

$ sbuild -d trixie samba_4.24.0~rc1+dfsg-3.dsc
Downloading /home/mjt/deb/samba_4.24.0~rc1+dfsg.orig.tar.xz to samba_4.24.0~rc1+dfsg.orig.tar.xz.
400 URL must be absolute
E: Could not download /home/mjt/deb/samba_4.24.0~rc1+dfsg.orig.tar.xz

$ ls -l
total 188
-rw-rw-r-- 1 mjt mjt 190444 Jan 21 12:22 samba_4.24.0~rc1+dfsg-3.debian.tar.xz
-rw-r--r-- 1 mjt mjt      0 Jan 21 14:01 samba_4.24.0~rc1+dfsg.orig.tar.xz

$ _

This happens with any .dsc file, and sbuild config is irrelevant too.

It looks lile in case when .orig.tar.gz is missing, sbuild treats
input as an URL to download, and cleans it up on failure.