From 7947d3a13dcf3ff7d651c312ca37c8d69d309118 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Tue, 3 Jan 2023 00:37:22 +0200 Subject: Add the rsync-unquoted patch to fix a shellcheck FTBFS Closes: #1027490 --- debian/patches/rsync-unquoted.patch | 29 +++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 30 insertions(+) create mode 100644 debian/patches/rsync-unquoted.patch create mode 100644 debian/patches/series diff --git a/debian/patches/rsync-unquoted.patch b/debian/patches/rsync-unquoted.patch new file mode 100644 index 0000000..daaa12a --- /dev/null +++ b/debian/patches/rsync-unquoted.patch @@ -0,0 +1,29 @@ +Description: Make the rsync invocation a bit more shell-friendly + Version 0.9 of the shellcheck utility shows a new diagnostic message for + our rsync invocation with unquoted $noop, $v, and $delete variables, so + make what we are trying to do there fully explicit. +Bug-Debian: https://bugs.debian.org/1027490 +Origin: upstream, https://gitlab.com/ppentchev/repopush/-/commit/772cc3f43367c4e3c8ba767c75ecb7d7ca5a058c +Author: Peter Pentchev +Last-Update: 2023-01-03 + +--- a/repopush.sh ++++ b/repopush.sh +@@ -1,6 +1,6 @@ + #!/bin/sh + # +-# Copyright (c) 2020, 2021 Peter Pentchev ++# Copyright (c) 2020 - 2023 Peter Pentchev + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without +@@ -99,8 +99,7 @@ + { + local n="$1" ntotal="$2" desc="$3" path="$4" delete="$5" + debug "- $n/$ntotal: $desc" +- # shellcheck disable=SC2086 +- rsync $noop $v -az $delete -- "$locpath$path/" "$remote$path/" ++ rsync ${noop:+-n} ${v:+-v} -az ${delete:+--delete} -- "$locpath$path/" "$remote$path/" + } + + sync_debrepo() diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..07dd786 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +rsync-unquoted.patch -- cgit v1.2.3