From f54404d26ca0b0bafeca7d0a592ffcce23b07bca Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 26 Jul 2016 18:06:55 +0100 Subject: [PATCH] dpkg: create var paths in post_install Closes #3324. Signed-off-by: Dominyk Tiller --- Formula/dpkg.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/dpkg.rb b/Formula/dpkg.rb index 99ca89e6c5..e71b490dfd 100644 --- a/Formula/dpkg.rb +++ b/Formula/dpkg.rb @@ -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.