archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / elasticsearch / trunk / remove-systemd-distribution-check.patch
blob8c9c341ff83545f75c5167aeedfd33cdbb23297c
1 diff --git a/modules/systemd/src/main/java/org/elasticsearch/systemd/SystemdPlugin.java b/modules/systemd/src/main/java/org/elasticsearch/systemd/SystemdPlugin.java
2 index 40cc219cbb4..5b89f469da7 100644
3 --- a/modules/systemd/src/main/java/org/elasticsearch/systemd/SystemdPlugin.java
4 +++ b/modules/systemd/src/main/java/org/elasticsearch/systemd/SystemdPlugin.java
5 @@ -59,11 +59,7 @@ public class SystemdPlugin extends Plugin implements ClusterPlugin {
8 SystemdPlugin(final boolean assertIsPackageDistribution, final Build.Type buildType, final String esSDNotify) {
9 - final boolean isPackageDistribution = buildType == Build.Type.DEB || buildType == Build.Type.RPM;
10 - if (assertIsPackageDistribution) {
11 - // our build is configured to only include this module in the package distributions
12 - assert isPackageDistribution : buildType;
13 - }
14 + final boolean isPackageDistribution = true;
15 if (isPackageDistribution == false) {
16 logger.debug("disabling sd_notify as the build type [{}] is not a package distribution", buildType);
17 enabled = false;