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

--exclude not working as tar behaviour #205

Closed
0xAhmed opened this issue Apr 12, 2012 · 4 comments

Comments

@0xAhmed
Copy link

@0xAhmed 0xAhmed commented Apr 12, 2012

Hi Jordan,

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 ..

Example usage:

mkdir -p test/dir

touch test/dir/some-file

fpm -s dir -t deb -n test -prefix /root/installed --exclude "dir" test

dpkg -i test.deb

ls -l installed/test/dir/

total 0

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.

@sadams

This comment has been minimized.

Copy link

@sadams sadams commented May 10, 2012

I am also having this issue.

Cheers

@ThePixelDeveloper

This comment has been minimized.

Copy link

@ThePixelDeveloper ThePixelDeveloper commented May 15, 2012

👍 +1

@jimbrowne

This comment has been minimized.

Copy link
Contributor

@jimbrowne jimbrowne commented Jun 28, 2012

Submitted #236 for this; didn't include a magic phrase (fix|fixes|close|closes) in my commit message. sigh

@jimbrowne

This comment has been minimized.

Copy link
Contributor

@jimbrowne jimbrowne commented Sep 12, 2012

As #236 is now closed this issue can probably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.