Fix Windows builds with older cscripts.
authorCarl Hetherington <cth@carlh.net>
Sat, 6 Apr 2024 19:18:04 +0000 (21:18 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 6 Apr 2024 19:18:04 +0000 (21:18 +0200)
cdist

diff --git a/cdist b/cdist
index dc64605008ee0bc3b675622d021ce8d13dc21ec2..aefbbd12ef2b427cf49cf6030fef6ec1d82cf24e 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -593,6 +593,9 @@ class WindowsDockerTarget(DockerTarget):
     def __init__(self, bits, directory, environment_version):
         super(WindowsDockerTarget, self).__init__('windows', directory)
         self.bits = bits
+        # This was used to differentiate "normal" Windows from XP, and is no longer important,
+        # but old cscripts still look for it
+        self.target = None
 
         self.tool_path = '%s/usr/bin' % config.get('mxe_prefix')
         if self.bits == 32: