Skip to content

Commit

Permalink
dpkg: create var paths in post_install
Browse files Browse the repository at this point in the history
Closes #3324.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
DomT4 committed Jul 26, 2016
1 parent a663e8a commit f54404d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/dpkg.rb
Expand Up @@ -49,6 +49,11 @@ def install
(etc/"dpkg/origins").install_symlink "dummy" => "default"
end

def post_install
(var/"lib/dpkg").mkpath
(var/"log").mkpath
end

def caveats; <<-EOS.undent
This installation of dpkg is not configured to install software, so
commands such as `dpkg -i`, `dpkg --configure` will fail.
Expand Down

0 comments on commit f54404d

Please sign in to comment.