[Pkg-roundcube-maintainers] Bug#876722: roundcube: find(1) call in override_dh_install cannot delete all matched files

Chris Lamb lamby at debian.org
Mon Sep 25 08:17:59 UTC 2017


Source: roundcube
Version: 1.3.1+dfsg.1-1
Severity: minor
Tags: patch

Hi,

The find(1) call in override_dh_install will not delete all
matched files as -delete has high precedence; it will "bind" to
the -name .gitignore part only.

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index d9aa675..dc146b5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -62,7 +62,7 @@ override_dh_install:
 	done
 
 	#get rid of randomly '.gitignore' files
-	find $(CURDIR)/debian/roundcube-plugins/usr/share/roundcube -name '._*' -o -name '.gitignore' -delete ;
+	find $(CURDIR)/debian/roundcube-plugins/usr/share/roundcube \( -name '._*' -o -name '.gitignore' \) -delete ;
 
 	# password helpers is a experimental
 	rm $(CURDIR)/debian/roundcube-plugins/usr/share/roundcube/plugins/password/helpers/chgsaslpasswd.c


More information about the Pkg-roundcube-maintainers mailing list