]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2934] fix ignoring of native-pkg parameter
authorMarcin Godzina <mgodzina@isc.org>
Thu, 6 Jul 2023 08:04:07 +0000 (08:04 +0000)
committerMarcin Godzina <mgodzina@isc.org>
Tue, 18 Jul 2023 11:58:09 +0000 (11:58 +0000)
hammer.py

index 59e971f4dd6904e1390c52f4c7c30d5cb9238d83..688d69013b1f5f876a2f6a03a56587dad85e61a3 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -2912,7 +2912,9 @@ def _get_features(args):
         # as they are not compatible with others
         features = set(ALL_FEATURES)
         features.discard('all')
-        features.discard('native-pkg')
+        # do not include `native-pkg` in `all` if not set explicidly in parameters
+        if 'native-pkg' not in set(vars(args)['with']):
+            features.discard('native-pkg')
 
     # if we build native packages then some features are required and some not
     if 'native-pkg' in features: