Add /home as a fallback for downloading packages before using rootfs test-bug-146669
authorMario Sanchez Prada <msanchez@igalia.com>
Wed, 2 Sep 2009 11:25:27 +0000 (13:25 +0200)
committerMario Sanchez Prada <msanchez@igalia.com>
Fri, 13 Nov 2009 12:28:41 +0000 (13:28 +0100)
commit4fa4b0b2a0714b05a70feee505f7f4af12758ad1
tree1f7c9443b58a734cf72be9d2b93553af036c3881
parentf5ab3b3909067f2b082cc4423763cda232286073
Add /home as a fallback for downloading packages before using rootfs

* src/apt-worker.cc (HOME_MOUNTPOINT): New define for "/home"
  (cmd_download_package): Try "/home" if internal and removable mmc's
  are not available for use, before falling back to rootfs.
  (is_there_enough_free_space): Consider archives path not being under
  "/home" when checking for enough free space both for downloading and
  installation (when using rootfs for downloading, basically).
src/apt-worker.cc