From: Julien Cristau Date: Wed, 27 Apr 2016 08:06:08 +0000 (+0200) Subject: Add by-hash support X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=391f5ec09a119131dc846b796ca791f4cecc69e4;hp=391f5ec09a119131dc846b796ca791f4cecc69e4;p=dak.git Add by-hash support Add a per-suite boolean to enable by-hash; store the by-hash files in the db, and record when they stopped being referenced, so that clean-suites can delete them after the archive's stayofexecution time. In generate-release, where we have checksums for all the things, hardlink files to the by-hash dir for each of the suite's configured hash methods. Signed-off-by: Julien Cristau --- changes in v2: - use archive.stayofexecution as delay before removing files from by-hash - don't assume any particular ordering for suite.checksums changes in v3: - rebase on latest master, update115 is now update116 - handle missing files in clean_byhash changes in v4: - use hardlinks instead of symlinks - don't initialize `unreferenced` to its default value - in clean_byhash, remove useless fetchall, and handle ENOENT from unlink instead of checking for existence beforehand ---