File: 0015-silence-not-latest-version.patch

package info (click to toggle)
crowdsec 1.4.6-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,500 kB
  • sloc: sh: 2,870; makefile: 386; python: 74
file content (23 lines) | stat: -rw-r--r-- 827 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Cyril Brulebois <cyril@debamax.com>
Date: Wed, 01 Mar 2023 23:58:00 +0100
Subject: Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

--- a/pkg/cwhub/helpers.go
+++ b/pkg/cwhub/helpers.go
@@ -35,11 +35,6 @@ func chooseHubBranch() (string, error) {
 		return "master", nil
 	}
 
-	log.Warnf("Crowdsec is not the latest version. "+
-		"Current version is '%s' and the latest stable version is '%s'. Please update it!",
-		csVersion, latest)
-	log.Warnf("As a result, you will not be able to use parsers/scenarios/collections "+
-		"added to Crowdsec Hub after CrowdSec %s", latest)
 	return csVersion, nil
 }