title: debian package creating needed directories in preinst
body: <p>I have the following debian structure:</p>
  
  <ul>
  <li>debian/usr/share/test</li>
  <li>debian/usr/share/test/test</li>
  <li>debian/usr/share/test/test/a</li>
  <li>debian/usr/share/test/test/b</li>
  </ul>
  
  <p>After building the package using dpkg-deb --build and installing it using dpkg -i, it doesn't seem to create the folders test automatically if they don't exist. Do I need to create them manually in preinst script?</p>
  
  <p>UPDATE: Issue was because preinst had an error so unpacking didn't get a chance to happen.</p>
  
  <p>Laurent</p>