File hadolint-update_DL3011.patch of Package ghc-hadolint

diff -urN hadolint-2.12.0/src/Hadolint/Rule/DL3011.hs hadolint-2.12.0-patch/src/Hadolint/Rule/DL3011.hs
--- hadolint-2.12.0/src/Hadolint/Rule/DL3011.hs	2022-11-09 19:49:37.000000000 +0200
+++ hadolint-2.12.0-patch/src/Hadolint/Rule/DL3011.hs	2025-07-14 14:38:27.892216371 +0300
@@ -10,7 +10,7 @@
     severity = DLErrorC
     message = "Valid UNIX ports range from 0 to 65535"
     check (Expose (Ports ports)) =
-      and [p <= 65535 | Port p _ <- ports]
-        && and [l <= 65535 && m <= 65535 | PortRange l m _ <- ports]
+      and [p <= 65535 | PortSpec (Port p _) <- ports]
+        && and [l <= 65535 && m <= 65535 | PortRangeSpec (PortRange (Port l _) (Port m _)) <- ports]
     check _ = True
 {-# INLINEABLE rule #-}
openSUSE Build Service is sponsored by