-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
Closes #122
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ def initialize(*args) | |
:pin, | ||
:pin_priority | ||
|
||
attribute :package_name, :kind_of => String, :name_attribute => true | ||
attribute :package_name, :kind_of => String, :name_attribute => true, :regex => [ /^([a-z]|[A-Z]|[0-9]|_|-|\.)+$/ ] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
thommay
Contributor
|
||
attribute :glob, :kind_of => String | ||
attribute :pin, :kind_of => String | ||
attribute :pin_priority, :kind_of => String |
1 comment
on commit d9da784
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also causes an issue with the current version of the debian cookbook [https://github.com/reaktor/chef-debian/issues/16]
I am not sure I understand why the regex is being so strict. I used to be able to pass in
package*
without any issue, I understandglob
is for that but I don't see any difference between those two at this point. Bothpackage_name
andglob
both feed intobuild_pref
Would it be possible to allow
*
in the package name regex instead?