From 5d94b728bb1e2986b73cb57d4db01dcbd91f1e1b Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Thu, 10 Sep 2026 14:20:39 -0700 Subject: [PATCH 1/2] Exclude bin/jars for splunk 10.1+ --- splunk/common-files/make-minimal-exclude.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/splunk/common-files/make-minimal-exclude.py b/splunk/common-files/make-minimal-exclude.py index 2fd0b814..7dce34bb 100755 --- a/splunk/common-files/make-minimal-exclude.py +++ b/splunk/common-files/make-minimal-exclude.py @@ -1,6 +1,7 @@ #!/usr/bin/python -import re, sys +import re +import sys EXCLUDE_V7 = """*-manifest */bin/installit.py @@ -56,9 +57,9 @@ elif int(major_version) == 10: if int(minor_version) >= 1: EXCLUDE_V7 = EXCLUDE_V7.replace('*/bin/node*', '') - EXCLUDE_V7 = EXCLUDE_V7.replace('*/lib/node_modules*', '') - if int(minor_version) >= 2: + EXCLUDE_V7 = EXCLUDE_V7.replace("*/lib/node_modules*", "") EXCLUDE_V7 = EXCLUDE_V7.replace('*/bin/jars/*', '') + if int(minor_version) >= 2: EXCLUDE_V7 = EXCLUDE_V7.replace('*/etc/apps/splunk_archiver*', '') EXCLUDE_V7 = EXCLUDE_V7.replace('*/bin/jsmin*', '') elif int(major_version) > 10: From fbbe8e1d8691551dc1bdd316efed53af61f9269d Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Fri, 11 Sep 2026 15:22:36 -0700 Subject: [PATCH 2/2] Fix regex warning --- splunk/common-files/make-minimal-exclude.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splunk/common-files/make-minimal-exclude.py b/splunk/common-files/make-minimal-exclude.py index 7dce34bb..3394efe3 100755 --- a/splunk/common-files/make-minimal-exclude.py +++ b/splunk/common-files/make-minimal-exclude.py @@ -31,7 +31,7 @@ */share/splunk/pdf* *mrsparkle*""" -version_string = re.match(".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-[lL]inux-[0-9a-z_-]+.tgz", sys.argv[1]) +version_string = re.match(r".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-[lL]inux-[0-9a-z_-]+.tgz", sys.argv[1]) major_version = None minor_version = None