Commit 1e5bb5c4 authored by Fabio Pelosin's avatar Fabio Pelosin

Validator: check license only in root spec

Closes https://github.com/CocoaPods/Core/issues/132
parent 672850f2
......@@ -5,6 +5,8 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
## Master
##### Bug Fixes
* Fixed pod repo push to first check if Specs directory exists and if so push there.
[Edward Valentini](edwardvalentini)
[#2060](https://github.com/CocoaPods/CocoaPods/issues/2060)
......@@ -19,6 +21,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Kyle Fuller](kylef)
[pod-template#50](https://github.com/CocoaPods/pod-template/issues/50)
* Fixed spec linting to not warn for missing license file in subspecs.
[Fabio Pelosin][irrationalfab]
[Core#132](https://github.com/CocoaPods/Core/issues/132)
## 0.33.1
......
......@@ -351,8 +351,10 @@ module Pod
end
end
unless file_accessor.license || spec.license && ( spec.license[:type] == 'Public Domain' || spec.license[:text] )
warning "Unable to find a license file"
if consumer.spec.root?
unless file_accessor.license || spec.license && ( spec.license[:type] == 'Public Domain' || spec.license[:text] )
warning "Unable to find a license file"
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment