Package: aptly
Version: 1.4.0+ds1-3
Severity: normal
Tags: patch

Dear Maintainer,

Because the file named in debian/aptly.bash-completion does not exist,
dh_bash-completion installs debian/aptly.bash-completion as
/usr/share/bash-completion/completions/aptly, which is not a valid shell
script.  Instead, debian/aptly.bash-completion should install
completion.d/aptly as /usr/share/bash-completion/completions/aptly.

Patch attached.

Thanks,
Kevin
>From 6ab5c95da42860bdf2f341d1eef5c7d550589b5c Mon Sep 17 00:00:00 2001
Message-Id: 
<6ab5c95da42860bdf2f341d1eef5c7d550589b5c.1615471580.git.ke...@kevinlocke.name>
From: Kevin Locke <ke...@kevinlocke.name>
Date: Thu, 11 Mar 2021 07:01:57 -0700
Subject: [PATCH] Fix bash-completion script installation

Because the file named in debian/aptly.bash-completion does not exist,
dh_bash-completion installs debian/aptly.bash-completion as
/usr/share/bash-completion/completions/aptly, which is invalid.  Fix it
to install completion.d/aptly instead.

Signed-off-by: Kevin Locke <ke...@kevinlocke.name>
---
 debian/aptly.bash-completion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/aptly.bash-completion b/debian/aptly.bash-completion
index 2e8627e4..af08cb0b 100644
--- a/debian/aptly.bash-completion
+++ b/debian/aptly.bash-completion
@@ -1 +1 @@
-bash_completion.d/aptly
+completion.d/aptly
-- 
2.30.1

Reply via email to