[Build-common-hackers] Bug#387103: cdbs bug 387103: Proposed patch

Oliver Elphick olly at lfix.co.uk
Wed Dec 6 15:21:37 CET 2006


This patch is a simple solution; it checks for the existence of
DEB_SRCDIR before populating $reversepatches.  If the directory does not
exist, the patch list will be empty and so no reverse patching will be
attempted.

$ diff -u simple-patchsys.mk.orig simple-patchsys.mk
--- simple-patchsys.mk.orig     2006-12-06 13:52:56.000000000 +0000
+++ simple-patchsys.mk  2006-12-06 13:53:54.000000000 +0000
@@ -86,7 +86,9 @@
        @set -e ; reverse=""; patches="$(DEB_PATCHES)"; \
        if [ "$@" = "reverse-patches" ]; then \
          reverse="-R"; \
-         for patch in $$patches; do reversepatches="$$patch $$reversepatches"; done; \
+         if [ -d $(DEB_SRCDIR) ]; then \
+           for patch in $$patches; do reversepatches="$$patch $$reversepatches"; done; \
+         fi; \
          patches="$$reversepatches"; \
        fi; \
        for patch in $$patches; do \


-- 
Oliver Elphick                                          olly at lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html





More information about the Build-common-hackers mailing list