Unverified Commit b4a29f26 authored by mvdbeek's avatar mvdbeek
Browse files

Only check profile version in Galaxy

parent 14b6579e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -772,7 +772,7 @@ class Tool(Dictifiable):
            raise Exception("Missing tool 'id' for tool at '%s'" % tool_source)

        profile = packaging.version.parse(str(self.profile))
        if profile >= packaging.version.parse("16.04") and packaging.version.parse(VERSION_MAJOR) < profile:
        if self.app.name == 'galaxy' and profile >= packaging.version.parse("16.04") and packaging.version.parse(VERSION_MAJOR) < profile:
            template = "The tool %s targets version %s of Galaxy, you should upgrade Galaxy to ensure proper functioning of this tool."
            message = template % (self.id, self.profile)
            raise Exception(message)