From 05937c6f0eb16d39a89583f6549c564cf3b2464e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 25 May 2025 12:49:27 +0200 Subject: [PATCH] ubuntu-backport-cockpit: Support local dsc --- ubuntu-backport-cockpit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ubuntu-backport-cockpit b/ubuntu-backport-cockpit index 07e8c08..b1d1828 100755 --- a/ubuntu-backport-cockpit +++ b/ubuntu-backport-cockpit @@ -4,6 +4,8 @@ PACKAGE=${1:-cockpit} TARGET=${2:-noble} POCKET="${TARGET}-backports" +[ -z "${3:-}" ] || DSC=$(realpath "$3") + series_ver() { ver=$(wget -q -O- http://de.archive.ubuntu.com/ubuntu/dists/$1/universe/source/Sources.xz | xz -d | grep-dctrl -n -sVersion -XP $PACKAGE | sort -u | tail -n1) ver=${ver%~bpo*} @@ -28,7 +30,11 @@ upload() { rm -rf /tmp/backport mkdir /tmp/backport cd /tmp/backport -apt-get source $PACKAGE +if [ -n "${DSC:-}" ]; then + dpkg-source -x "$DSC" +else + apt-get source $PACKAGE +fi cd ${PACKAGE}-* case "$TARGET" in -- 2.47.2