File: disable-version-check.patch

package info (click to toggle)
salmon 1.10.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,088 kB
  • sloc: cpp: 200,707; ansic: 171,082; sh: 859; python: 792; makefile: 238
file content (19 lines) | stat: -rw-r--r-- 721 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
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Disable the newer version check
Forwarded: not-needed
--- salmon.orig/src/Salmon.cpp
+++ salmon/src/Salmon.cpp
@@ -219,13 +219,6 @@
     std::transform(no_version_env.begin(), no_version_env.end(), no_version_env.begin(), 
                    [](unsigned char c){ return std::toupper(c); } // correct
                   );
-    bool skip_version_check = vm.count("no-version-check") or (no_version_env == "1") 
-                              or (no_version_env == "TRUE") or (no_version_env == "T");
-
-    if (!skip_version_check) {
-      std::string versionMessage = getVersionMessage();
-      std::cerr << versionMessage;
-    }
 
     // po::notify(vm);