Mail archive
alpine-aports

[alpine-aports] [PATCH] main/btrfs-progs: fix install_if for bash completions

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
Date: Mon, 21 Dec 2015 14:27:50 +0100

Only install bash completion files if bash-completion is installed.
---
 main/btrfs-progs/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main/btrfs-progs/APKBUILD b/main/btrfs-progs/APKBUILD
index a3e13fc..adb0b69 100644
--- a/main/btrfs-progs/APKBUILD
+++ b/main/btrfs-progs/APKBUILD
_at_@ -3,7 +3,7 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=btrfs-progs
 pkgver=4.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc="BTRFS filesystem utilities"
 url="https://btrfs.wiki.kernel.org/"
 arch="all"
_at_@ -55,7 +55,7 @@ package() {
 
 completion() {
         pkgdesc="Bash completion script for $pkgname"
-        install_if="bash $pkgname=$pkgver-r$pkgrel"
+        install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
         arch="noarch"
 
         install -Dm644 "$_builddir"/btrfs-completion \
-- 
2.6.4
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Dec 21 2015 - 14:27:50 GMT