From 5035726fa86cf90e8871315b0386b43ec565331a Mon Sep 17 00:00:00 2001 From: Remi Thebault Date: Thu, 18 May 2023 21:20:12 +0200 Subject: [PATCH] modules/dlang: Use the DubDependency.class_dubbin correctly Which was broken because of DubDependency.class_dubbin typing change. Passed under radar because Dub tests were deactivated in the same PR. --- mesonbuild/modules/dlang.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/modules/dlang.py b/mesonbuild/modules/dlang.py index 34fea9081..966b0703d 100644 --- a/mesonbuild/modules/dlang.py +++ b/mesonbuild/modules/dlang.py @@ -28,8 +28,8 @@ class DlangModule(ExtensionModule): }) def _init_dub(self, state): - if DlangModule.class_dubbin is None: - self.dubbin = DubDependency.class_dubbin + if DlangModule.class_dubbin is None and DubDependency.class_dubbin is not None: + self.dubbin = DubDependency.class_dubbin[0] DlangModule.class_dubbin = self.dubbin else: self.dubbin = DlangModule.class_dubbin