[SCM] glyr/master: Fix permissions of example file only if it exists (fixes FTBFS)

emillon-guest at users.alioth.debian.org emillon-guest at users.alioth.debian.org
Sat Sep 29 19:54:36 UTC 2012


The following commit has been merged in the master branch:
commit 8aa664755b400c4cbd6adf47ac1b68e29905fc04
Author: Etienne Millon <me at emillon.org>
Date:   Sat Sep 29 21:35:11 2012 +0200

    Fix permissions of example file only if it exists (fixes FTBFS)
    
    On the buildds, the arch: all packages are not created so it won't exist there.

diff --git a/debian/rules b/debian/rules
index c93a202..422eee4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,8 +17,10 @@ endif
 override_dh_compress:
 	dh_compress -Xasync_queue.c -Xexample.c
 
+ASYNC_QUEUE=debian/libglyr-doc/usr/share/doc/libglyr-doc/examples/async_queue.c
+
 override_dh_fixperms:
-	chmod a-x debian/libglyr-doc/usr/share/doc/libglyr-doc/examples/async_queue.c
+	[ -e $(ASYNC_QUEUE) ] && chmod a-x $(ASYNC_QUEUE)
 	dh_fixperms
 	
 override_dh_strip:

-- 
glyr packaging



More information about the pkg-multimedia-commits mailing list