[Build-common-hackers] Bug#296984: cdbs: simple-patchsys.mk does not remove *.log in each of $DEB_PATCHDIRS

Adeodato Simó Adeodato Simó , 296984@bugs.debian.org
Sat, 26 Feb 2005 09:05:59 +0100


--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Package: cdbs
Version: 0.4.27-1
Severity: normal
Tags: patch

Hello,

  simple-patchsys.mk has the following:

    clean:: reverse-patches
            rm -f debian/patches/*.log

  However, patches can be in each of the dirs listed in $(DEB_PATCHDIRS), 
  so it is possible that *.log files are left after clean.

  The attached patch fixes this issue.

  Thanks,

-- 
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
 
Military justice is to justice what military music is to music.
                -- Groucho Marx

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="simple-patchsys.diff"

--- simple-patchsys.mk~	2005-02-26 09:03:11.644095772 +0100
+++ simple-patchsys.mk	2005-02-26 09:03:58.718861351 +0100
@@ -64,7 +64,9 @@
 post-patches:: apply-patches
 
 clean:: reverse-patches
-	rm -f debian/patches/*.log
+	for dir in $(DEB_PATCHDIRS) ; do \
+	    rm -f $$dir/*.log ; \
+	done
 
 # The patch subsystem 
 apply-patches: pre-build debian/stamp-patched

--ZGiS0Q5IWpPtfppv--