6 | | |
7 | | {{{ |
8 | | # hook to deactivate old installations of py-obspy-core ("deactivate hack") |
9 | | pre-activate { |
10 | | if {[file exists ${prefix}/bin/obspy-runtests-2.5 |
11 | | && ![catch {set vers [lindex [registry_active py26-obspy-core] 0]}] |
12 | | && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} { |
13 | | registry_deactivate py-obspy-core "" [list ports_nodepcheck 1] |
14 | | registry_deactivate py25-obspy-core "" [list ports_nodepcheck 1] |
15 | | } |
16 | | if {[file exists ${prefix}/bin/obspy-runtests-2.6 |
17 | | && ![catch {set vers [lindex [registry_active py26-obspy-core] 0]}] |
18 | | && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} { |
19 | | registry_deactivate py-obspy-core "" [list ports_nodepcheck 1] |
20 | | registry_deactivate py26-obspy-core "" [list ports_nodepcheck 1] |
21 | | } |
22 | | if {[file exists ${prefix}/bin/obspy-runtests-2.7 |
23 | | && ![catch {set vers [lindex [registry_active py26-obspy-core] 0]}] |
24 | | && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} { |
25 | | registry_deactivate py-obspy-core "" [list ports_nodepcheck 1] |
26 | | registry_deactivate py27-obspy-core "" [list ports_nodepcheck 1] |
27 | | } |
28 | | } |
29 | | }}} |
| 6 | |