bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

cleaning up empty directories after rpm uninstall #53

Closed chqr closed 10 years ago

chqr commented 10 years ago

Hello,

Is there any way to specify fpm's --rpm-auto-add-directories (or even just --directories) option from a recipe?

For now, I have been using post-uninstall scripts to clean up empty dirs, but it would be nice if there were a simpler solution.

Thanks!

bernd commented 10 years ago

Good idea! I'll look into this.

bernd commented 10 years ago

I just committed a patch for this. Are you able to test this and see if it works for you? Thank you!

class P < FPM::Cookery::Recipe
  # ...
  directories '/var/lib/foo', '/var/cache/foo'
end
chqr commented 10 years ago

This definitely works for me. Thanks!

bernd commented 10 years ago

Great, thank you!