Package: maint-guide Version: 1.2.53 Severity: normal Tags: patch in 3.1 Setting up quilt if quilt is not installed bash init whit error!
The code: ''' . /usr/share/bash-completion/completions/quilt complete -F _quilt_completion -o filenames dquilt ''' Shoud be change for: ''' if [ -f /usr/share/bash-completion/completions/quilt ]; then . /usr/share/bash-completion/completions/quilt complete -F _quilt_completion -o filenames dquilt if ''' Greetings Guillermo Reisch -- System Information: Debian Release: trixie/sid APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'oldstable-security'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armel Kernel: Linux 6.4.0-2-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=es_UY.UTF-8, LC_CTYPE=es_UY.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled maint-guide depends on no packages. maint-guide recommends no packages. Versions of packages maint-guide suggests: ii debian-policy 4.6.2.0 pn developers-reference <none> ii devscripts 2.23.6 pn dh-make <none> pn doc-base <none> pn dupload | dput <none> ii fakeroot 1.32.1-1 ii lintian 2.116.3 pn pbuilder <none> pn quilt <none> -- no debconf information
>From 395c6eca54356603a29fd323358df04010534287 Mon Sep 17 00:00:00 2001 From: Guillermo Reisch <guill...@adinet.com.uy> Date: Wed, 13 Sep 2023 16:53:52 -0300 Subject: [PATCH] fix bash error if quilt is uninstalled --- doc/03_modify.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/03_modify.xml b/doc/03_modify.xml index 8903727..2251cac 100644 --- a/doc/03_modify.xml +++ b/doc/03_modify.xml @@ -19,8 +19,10 @@ shell completion feature of the <command>quilt</command> command to the </para> <screen> alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg" -. /usr/share/bash-completion/completions/quilt -complete -F _quilt_completion -o filenames dquilt +if [ -f /usr/share/bash-completion/completions/quilt ]; then + . /usr/share/bash-completion/completions/quilt + complete -F _quilt_completion -o filenames dquilt +fi </screen> <para> Then let's create <filename>~/.quiltrc-dpkg</filename> as follows: -- 2.40.1