Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
As mention in the help output of fpm, the --exclude option should work as tar, this is not quite true for directories ..
The pattern matching in the --exclude option is being applied on files but NOT on directories so i can't exclude a whole directory using globs, the best thing i could do is to exclude all files within the dir but the dir itself just remains out there with no files in it which remains in the package afterwords ..
mkdir -p test/dir
fpm -s dir -t deb -n test -prefix /root/installed --exclude "dir" test
dpkg -i test.deb
ls -l installed/test/dir/
So the files within the dir are excluded indeed, but the empty dir just stays there ! and i can't put a glob that excludes the dir by any means ..
I know that this issue had several tickets before and it's becoming nasty :) ..
Thanks in advance.