[debrepatch] 02/02: special case my system where my debdiff needs an extra opt to work here

Mattia Rizzolo mattia at debian.org
Wed Mar 14 17:01:46 UTC 2018


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository debrepatch.

commit fd1bf2ed0fb2b72a8c671c3c54a310c829c94106
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Mar 14 17:59:31 2018 +0100

    special case my system where my debdiff needs an extra opt to work here
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 debrepatch | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/debrepatch b/debrepatch
index 52d7a23..e48ab02 100755
--- a/debrepatch
+++ b/debrepatch
@@ -97,7 +97,12 @@ newdsc="$(ls -1 *.dsc | grep -v -F "$olddsc")"
 log I "$srcpkg patched successfully"
 ls -l "$olddsc" "$newdsc"
 
-debdiff "$olddsc" "$newdsc" > "$patchdir/$srcpkg.patch.new" || true
+# please do not hate mattia ☺
+if [ "$(hostname -f)" = "warren.mapreri.org" ] && [ "$USER" = "mattia" ]; then
+    # I run with a debdiff wrapper in $PATH that needs this
+    debdiff_opts=-p
+fi
+debdiff ${debdiff_opts:-} "$olddsc" "$newdsc" > "$patchdir/$srcpkg.patch.new" || true
 log I "updated patch written to $patchdir/$srcpkg.patch.new"
 
 if [ -z "$*" ]; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debrepatch.git



More information about the Reproducible-commits mailing list