etc/aptsrc.conf: Cope with `bullseye' having different security URL.
[distorted-chroot] / Makefile
index 9dd6e1f..a6c2179 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -437,8 +437,8 @@ check::; $(call check-symlink,ERR,/schroot,/run/schroot/mount)
 
 %print-varlist          = { \
        echo "\#\#\# -*-sh-*- GENERATED by distorted-chroot: do not edit"; \
-       $(foreach v,$1, echo $v=\''$(subst ','\'\\\'\'',$($v))'\';) \
-} #'
+       $(foreach v,$1, echo $v=\'$(call squote,$($v))\';) \
+}
 schroot-config_HASH    := \
        $(shell $(call %print-varlist,$(CONFIG_VARS)) | \
                sha256sum | cut -c1-32)
@@ -446,7 +446,7 @@ schroot-config_FILE  = $(STATE)/config.sh-$(schroot-config_HASH)
 $(schroot-config_FILE):
        $(V_AT)mkdir -p $(STATE)
        $(V_AT)rm -f $(STATE)/config.sh-*
-       $(call v_tag,STAMP)$(call %print-varlist,$(CONFIG_VARS)) \
+       $(call v_tag,GEN)$(call %print-varlist,$(CONFIG_VARS)) \
                >$@.new && mv $@.new $@
 
 schroot-config:: $(STATE)/config.sh