dpkg: create var paths in post_install

Closes #3324.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2016-07-26 18:06:55 +01:00
parent a663e8af54
commit f54404d26c

View file

@ -49,6 +49,11 @@ class Dpkg < Formula
(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.