From 051c66335fd7a3a300c0a043ce5a13139a5b0785 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 13 Feb 2019 23:17:46 -0600 Subject: pythia6: fix input verification issue and example data checksum. (#10563) * pythia6: fix issue validating integer input. * pythia6: account for apparent update of example data file. --- var/spack/repos/builtin/packages/pythia6/package.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/pythia6/package.py b/var/spack/repos/builtin/packages/pythia6/package.py index 6c282ee95c..cfb9313cfc 100644 --- a/var/spack/repos/builtin/packages/pythia6/package.py +++ b/var/spack/repos/builtin/packages/pythia6/package.py @@ -14,8 +14,7 @@ def _is_integral(x): """Accepts only integral values.""" try: return isinstance(int(x), numbers.Integral) and \ - (not isinstance(x, bool)) and \ - int(x) == x + (not isinstance(x, bool)) except ValueError: return False @@ -100,7 +99,7 @@ class Pythia6(CMakePackage): 'main81.f': 'b02fecd1cd0f9ba16eaae53e9da0ba602569fdf0e46856cccdfb4c5b7ba33e8b', 'ttbar.lhe': - 'fb0d43175cc392b19c2b6633dcf673d0b56229b60bec92df4aa782c7196b149c'} + 'db772b69ab4e0300d973b57414523ac8e7fa8535eac49ee52a6b69b1c131983d'} for example, checksum in iteritems(examples): resource(name=example, -- cgit v1.2.3-70-g09d2