Download & Extend

De-couple .info check for 'core = 6.x' and dependencies[]

Project:Coder
Version:5.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Take the following .info file:

name = Upload Permissions Per Content Type
description = Allows you to restrict access to the upload form, per role, per content type.
dependencies = upload

When running the 5.x to 6.x scan, you'll get the following:

Line 3: New syntax for .info files files requires core=6.x

dependencies = upload

When you add "core = 6.x" (should have spaces between the equals sign; that's another bug) and reload, then you get:

Line 3: New syntax for .info files, use dependencies[]

dependencies = upload

It'd be great to have both of those warnings the first time.

Comments

#1

Status:active» needs review

This fixes it, though it might not be the most opportune way. -1/-2 strikes me as a bit brittle.

AttachmentSize
coder-info-file-warnings-265093-1.patch 1.08 KB