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

From: Sören Tempel <[email-masked]>
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
@@ -3,7 +3,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=btrfs-progs
 pkgver=4.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc="BTRFS filesystem utilities"
 url="https://btrfs.wiki.kernel.org/"
 arch="all"
@@ -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:  [email-masked]
Help:         [email-masked]
---