Unverified Commit 69284361 authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #13055 from mvdbeek/lift_version_check_in_toolshed

[21.01] Only check profile version in Galaxy
parents 14b6579e b4a29f26
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)