]> andersk Git - config-package-dev.git/commitdiff
Don't remove DEB_DIVERT_EXTENSION from DEB_CHECK_FILES_SOURCEs
authorGeoffrey Thomas <geofft@mit.edu>
Sun, 9 Sep 2012 23:37:17 +0000 (16:37 -0700)
committerGeoffrey Thomas <geofft@mit.edu>
Tue, 18 Sep 2012 16:56:40 +0000 (09:56 -0700)
The purpose of removing the extension is to determine the name of the
source file to be transformed. If that name is explicitly specified,
it's incorrect to further process it.

check-files.mk

index 942673364b4627fd09c1a7d262637fb2c80c6bf5..3675f13ad9826e88f4f9064af3e98e9f86601ca5 100644 (file)
@@ -38,8 +38,7 @@ include /usr/share/cdbs/1/rules/divert.mk
 
 DEB_CHECK_FILES_TMPDIR = debian/check_file_copies
 
-debian_check_files_source = $(if $(DEB_CHECK_FILES_SOURCE_$(1)),$(DEB_CHECK_FILES_SOURCE_$(1)),$(1))
-debian_check_files_check = $(call divert_files_replace_name,$(call debian_check_files_source,$(1)))
+debian_check_files_source = $(if $(DEB_CHECK_FILES_SOURCE_$(1)),$(DEB_CHECK_FILES_SOURCE_$(1)),$(call divert_files_replace_name,$(1)))
 
 debian_check_files = $(patsubst %,$(DEB_CHECK_FILES_TMPDIR)%,$(1))
 undebian_check_files = $(patsubst $(DEB_CHECK_FILES_TMPDIR)%,%,$(1))
@@ -59,7 +58,7 @@ $(call debian_check_files,%): $(call debian_check_files_tmp,%)
 #
 # There is some wrangling here because the formats of these sources differ.
 $(call debian_check_files_tmp,%): target = $(call undebian_check_files_tmp,$@)
-$(call debian_check_files_tmp,%): name = $(call debian_check_files_check,$(target))
+$(call debian_check_files_tmp,%): name = $(call debian_check_files_source,$(target))
 $(call debian_check_files_tmp,%): truename = $(shell /usr/sbin/dpkg-divert --truename $(name))
 $(call debian_check_files_tmp,%): package = $(shell LC_ALL=C dpkg -S $(name) | sed -n '/^diversion by /! s/: .*$$// p')
 $(call debian_check_files_tmp,%): $(truename)
This page took 0.158493 seconds and 5 git commands to generate.