File: check_boost_version.patch

package info (click to toggle)
consensuscore 1.1.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,492 kB
  • sloc: cpp: 38,945; python: 2,083; ansic: 543; sh: 184; makefile: 91; cs: 10
file content (22 lines) | stat: -rw-r--r-- 817 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
Description: Filter out items from list that are None
Bug-Debian: https://bugs.debian.org/936328
Author: Andreas Tille <tille@debian.org>
Last-Update: Sat, 07 Dec 2019 12:44:55 +0100

--- a/tools/find_boost
+++ b/tools/find_boost
@@ -38,8 +38,12 @@ def find_boost():
         glob("/opt/local/include/boost/")  + \
         glob("/opt/local/include/boost*/")
 
-    boosts_found = [ (boost, boost_version(boost))
-                     for boost in boost_candidates ]
+    boosts_found_all = [ (boost, boost_version(boost))
+                         for boost in boost_candidates ]
+    boosts_found = []
+    for bf in boosts_found_all:
+        if not bf[1] == None:
+            boosts_found.append(bf)
     if boosts_found:
         best_boost = max(boosts_found, key=lambda t: t[1])[0]
         return best_boost