Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #37 Adding meaningful logging, when packageDescription in Debian is #146

Merged
merged 1 commit into from
Feb 1, 2014

Conversation

muuki88
Copy link
Contributor

@muuki88 muuki88 commented Feb 1, 2014

empty

@@ -131,6 +126,11 @@ trait DebianPlugin extends Plugin with linux.LinuxPlugin {
},
debianControlFile <<= (debianPackageMetadata, debianPackageInstallSize, target) map {
(data, size, dir) =>
if (data.info.description == null || data.info.description.isEmpty) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool. I wonder if we need to consolidate validation errors in one spot at some point. This is a good place right now, but perhaps the debianPackageMetadata can directly have a 'validate' which returns Seq[validatorError] at some point...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first thought, too. Then I stopped as the PackageMetadata is really a "stupid" information container and the validation if the container is ok, should be done somewhere else.

This should be adressed somehow ;)

@jsuereth
Copy link
Member

jsuereth commented Feb 1, 2014

Thanks for making this nicer! Good to merge after TravisCI reports success.

muuki88 added a commit that referenced this pull request Feb 1, 2014
Fix #37 Adding meaningful logging, when packageDescription in Debian is
@muuki88 muuki88 merged commit 68e3b8a into master Feb 1, 2014
@muuki88 muuki88 deleted the wip/debian-config-logging branch February 1, 2014 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants