File: 216.patch

package info (click to toggle)
udiskie 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 848 kB
  • sloc: python: 3,346; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 132d89613682189a399df443a2dd53c61ba7e732 Mon Sep 17 00:00:00 2001
From: Paul Seyfert <pseyfert.mathphys@gmail.com>
Date: Fri, 12 Feb 2021 20:49:56 +0100
Subject: [PATCH] Update setup.py to install zsh bash completions into the
 correct directory

According to [1] a path like /usr/share/zsh/vendor-completions
Is probably a better place to put such files, because site-functions directory might
not work everywhere (e.g. in Debian based systems)

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982442
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index d64c1e6..ed479db 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ def __mod__(self, context):
     },
     data_files=[
         ('share/bash-completion/completions', completions_bash),
-        ('share/zsh/site-functions', completions_zsh),
+        ('share/zsh/vendor-completions', completions_zsh),
         *[('share/locale/{}/LC_MESSAGES'.format(lang),
            ['build/locale/{}/LC_MESSAGES/udiskie.mo'.format(lang)])
           for lang in languages],