Whamcloud - gitweb
debian: avoid installing source.lintian-overrides
authorTheodore Ts'o <tytso@mit.edu>
Sat, 1 Oct 2011 04:08:12 +0000 (00:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 1 Oct 2011 04:08:12 +0000 (00:08 -0400)
This avoids lintian errors if we try to rebuild the package since
source.lintian-overrides ends up getting installed in
debian/source/usr/src/lintian/overrides/source, which then gets
dropped in the diff file.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/rules

index 4e507a0..c9584af 100755 (executable)
@@ -415,7 +415,9 @@ binary-arch: install install-udeb
   # lintian overrides
        for i in $$(cd debian && echo *.lintian-overrides); do \
                pkg=$${i%.lintian-overrides} ;\
-               $(INSTALL) -m 0644 -D -p debian/$$i ${debdir}/$${pkg}/usr/share/lintian/overrides/$${pkg} ;\
+               if test "$${pkg}" != source ; then \
+                       $(INSTALL) -m 0644 -D -p debian/$$i ${debdir}/$${pkg}/usr/share/lintian/overrides/$${pkg} ;\
+               fi ;\
        done
 
   # symlinks to prepare dh_installdocs run