{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/1021","labels_url":"https://api.github.com/repos/jordansissel/fpm/issues/1021/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/fpm/issues/1021/comments","events_url":"https://api.github.com/repos/jordansissel/fpm/issues/1021/events","html_url":"https://github.com/jordansissel/fpm/issues/1021","id":110075720,"number":1021,"title":"fpm issues error when using --exclude-file","user":{"login":"jtrammel","id":13028683,"avatar_url":"https://avatars.githubusercontent.com/u/13028683?v=3","gravatar_id":"","url":"https://api.github.com/users/jtrammel","html_url":"https://github.com/jtrammel","followers_url":"https://api.github.com/users/jtrammel/followers","following_url":"https://api.github.com/users/jtrammel/following{/other_user}","gists_url":"https://api.github.com/users/jtrammel/gists{/gist_id}","starred_url":"https://api.github.com/users/jtrammel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtrammel/subscriptions","organizations_url":"https://api.github.com/users/jtrammel/orgs","repos_url":"https://api.github.com/users/jtrammel/repos","events_url":"https://api.github.com/users/jtrammel/events{/privacy}","received_events_url":"https://api.github.com/users/jtrammel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T18:52:23Z","updated_at":"2015-10-08T11:41:49Z","closed_at":null,"body":"Hi,\r\n\r\nWhen I create an RPM from a directory tree, and I want to exclude some dirs, fpm spits out an error when using the --exclude-file parameter.\r\n\r\n\r\nSteps to reproduce:\r\n\r\n\r\nCreate the source tree:\r\n\r\n/bin/rm -rf /tmp/foo\r\nmkdir -p /tmp/foo/bar\r\nmkdir -p /tmp/foo/boo\r\ntouch /tmp/foo/bar/baz\r\ntouch /tmp/foo/boo/fubu\r\n\r\n\r\nCreate the exclude-file:\r\n\r\necho \"/tmp/foo/boo\" > /tmp/exclude.txt\r\n\r\n\r\n\r\n\r\nCreate the RPM using fpm:\r\n\r\nfpm \\\r\n-t rpm \\\r\n--vendor Foo \\\r\n--category \"System Environment/Shells\" \\\r\n--license LGPL \\\r\n--name foo \\\r\n--version 1.0.0 \\\r\n--iteration 0 \\\r\n--epoch 0 \\\r\n--architecture noarch \\\r\n--rpm-os linux \\\r\n-s dir \\\r\n--directories /tmp/foo \\\r\n--package /tmp \\\r\n--exclude-file /tmp/exclude.txt \\\r\n/tmp/foo\r\n\r\n\r\nYou should get the following error:\r\n\r\n.../lib/ruby2.0/gems/2.0.0/gems/fpm-1.4.0/lib/fpm/command.rb:367:in `execute': undefined local variable or method `exclude' for #<FPM::Command:0x007ff76ccb2030> (NameError)\r\n\tfrom /opt/macportsdev/lib/ruby2.0/gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'\r\n\tfrom /opt/macportsdev/lib/ruby2.0/gems/2.0.0/gems/fpm-1.4.0/lib/fpm/command.rb:535:in `run'\r\n\tfrom /opt/macportsdev/lib/ruby2.0/gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'\r\n\tfrom /opt/macportsdev/lib/ruby2.0/gems/2.0.0/gems/fpm-1.4.0/bin/fpm:8:in `<top (required)>'\r\n\tfrom /opt/macportsdev/bin/fpm:23:in `load'\r\n\tfrom /opt/macportsdev/bin/fpm:23:in `<main>'\r\n\r\n\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/comments/146511538","html_url":"https://github.com/jordansissel/fpm/issues/1021#issuecomment-146511538","issue_url":"https://api.github.com/repos/jordansissel/fpm/issues/1021","id":146511538,"user":{"login":"iurii-polishchuk","id":3329547,"avatar_url":"https://avatars.githubusercontent.com/u/3329547?v=3","gravatar_id":"","url":"https://api.github.com/users/iurii-polishchuk","html_url":"https://github.com/iurii-polishchuk","followers_url":"https://api.github.com/users/iurii-polishchuk/followers","following_url":"https://api.github.com/users/iurii-polishchuk/following{/other_user}","gists_url":"https://api.github.com/users/iurii-polishchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/iurii-polishchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iurii-polishchuk/subscriptions","organizations_url":"https://api.github.com/users/iurii-polishchuk/orgs","repos_url":"https://api.github.com/users/iurii-polishchuk/repos","events_url":"https://api.github.com/users/iurii-polishchuk/events{/privacy}","received_events_url":"https://api.github.com/users/iurii-polishchuk/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T11:41:49Z","updated_at":"2015-10-08T11:41:49Z","body":"I've got the same error when using --exclude-file option."}}