stpettersens / gulp-debian

:tropical_drink: Gulp plug-in to create a Debian package.
https://libraries.io/npm/gulp-debian
Other
7 stars 10 forks source link

Fix 'control directory has bad permissions 777 (must be >=0755 and <=0775)'. #23

Closed hydra closed 5 years ago

hydra commented 6 years ago

When attempting to build DPKG files on a WSL environment I encountered the above error, output from dpkg itself.

First I tried using the 'dirMode' option of outputFile but it didn't fix the issue, creating the control directory first fixes it.

https://www.npmjs.com/package/output-file#optionsdirmode

Note, diff looks big but it's just indentation.

hydra commented 6 years ago

with regards to the failing tests, can you take a look? I don't currently have time. I'm a super n00b when it comes to npm, node, etc. likely there's a test which needs to cleanup after itself before the next one runs as I think creating the directory fails if it already exists. If you have any code change suggestions let me know.

FYI, I'm here because a pre-exsting gulp task doesn't work for me on WSL, it uses the 'clean: true' option which is likely why this PR fixes my issues but causes the tests to file.

hydra commented 5 years ago

Closing, replaced by #24