From f846f7d93920b6128add74524592a4b452aacbee Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@debian.org>
Date: Wed, 22 Apr 2020 18:54:02 +0200
Subject: [PATCH] build: Add support for dpkg 1.20.x and default to it

---
 Feature.mk | 5 +++++
 Makefile   | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Feature.mk b/Feature.mk
index 6df8471..5a8506d 100644
--- a/Feature.mk
+++ b/Feature.mk
@@ -51,6 +51,11 @@ endif
 ifeq ($(call CHECK_VERSION,$(DPKG_SERIES),ge,1.19.x),yes)
 $(info Assuming checks for dpkg >= 1.19.x)
 export DPKG_HAS_WORKING_ROOTDIR_DIVERSIONS ?= 1
+endif
+
+# dpkg >= 1.20.x
+ifeq ($(call CHECK_VERSION,$(DPKG_SERIES),ge,1.20.x),yes)
+$(info Assuming checks for dpkg >= 1.20.x)
 # FIXME: dpkg-maintscript-helper does not support $DPKG_ROOT (#832176)
 #export DPKG_HAS_WORKING_ROOTDIR_MAINTSCRIPT_HELPER ?= 1
 endif
diff --git a/Makefile b/Makefile
index 915c251..73ee8a6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@
 
 ## Feature checks setup ##
 
-DPKG_SERIES ?= 1.18.x
+DPKG_SERIES ?= 1.20.x
 
 include Feature.mk
 
-- 
2.26.1

