Code

rules: Check whether all patches have been enabled; fail, if not.
authorSebastian Harl <sh@tokkee.org>
Sun, 24 Jan 2010 14:40:23 +0000 (15:40 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 24 Jan 2010 14:40:23 +0000 (15:40 +0100)
debian/changelog
debian/rules

index 0f3484204894bc672170d5908728203d4fb2f967..cca671770718219a3b25746cdf681956f9b645c2 100644 (file)
@@ -45,6 +45,7 @@ collectd (4.9.1-1) unstable; urgency=low
       vmem, vserver, wireless.
     - Simplified Java archdir mapping: removed entries "pointing" to
       themselves and let those default to DEB_BUILD_ARCH.
+    - Check whether all patches have been enabled; fail, if not.
   * debian/patches:
     - Added bts566199_collection_hide_types.dpatch -- added ability to hide
       specified types in collection.cgi; thanks to Pavel Piatruk for the patch
@@ -55,7 +56,7 @@ collectd (4.9.1-1) unstable; urgency=low
     - Replaced overrides for spelling-error-in-description with
       capitalization-error-in-description.
 
- -- Sebastian Harl <tokkee@debian.org>  Sun, 24 Jan 2010 14:40:32 +0100
+ -- Sebastian Harl <tokkee@debian.org>  Sun, 24 Jan 2010 15:39:18 +0100
 
 collectd (4.8.2-1) unstable; urgency=medium
 
index 2ddcaa0b07c133ea7ef5dfa9a0888a7147298903..4d2d74504bde026f4cae189b24bd5cb340fa64f0 100755 (executable)
@@ -133,6 +133,12 @@ endif
 config.status: configure $(DPATCH_STAMPFN)
        dh_testdir
        
+       ( cd debian/patches/; for patch in *; do \
+               if test "$$patch" != "00list"; then \
+                       grep "$$patch" 00list > /dev/null \
+                               || ( echo "$$patch not enabled\!"; exit 1 ); \
+               fi; done )
+       
        # This is a work-around for #474087 (broken openipmi .pc files).
        mkdir debian/pkgconfig
        sed -re 's/^(Requires:.*) pthread(.*)$$/\1\2/' \