{ "name": "jdupes", "version": "1.31.2", "summary": "jdupes: finds duplicate files fast and deletes them, hard-links, symlinks or deduplicates them (Btrfs, XFS)", "category": "tool", "license": "MIT", "homepage": "https://codeberg.org/jbruchon/jdupes", "source": { "url": "https://deb.debian.org/debian/pool/main/j/jdupes/jdupes_1.31.2.orig.tar.gz", "sha256": "a003ba9c57f2fbfc30f5af5a886b12423e0a0eba008429a48506d0c31a807c17" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/j/jdupes/", "regex": "jdupes_([0-9]+(?:\\.[0-9]+)+)\\.orig\\.tar\\.gz"}, "deps": [ "libjodycode" ], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && mkdir -p \"$t/d/sub\" && bin/jdupes -v | has '^jdupes 1.31.2' && head -c 200000 /dev/urandom > \"$t/d/a.bin\" && cp \"$t/d/a.bin\" \"$t/d/sub/a-copy.bin\" && printf 'same\\n' > \"$t/d/s1\" && printf 'same\\n' > \"$t/d/sub/s2\" && head -c 50000 /dev/urandom > \"$t/d/u.bin\" && cp -a \"$t/d\" \"$t/e\" && bin/jdupes -r -m \"$t/d\" | has '2 duplicate files (in 2 sets)' && bin/jdupes -r -L \"$t/d\" > /dev/null && [ \"$(stat -c %i \"$t/d/a.bin\")\" = \"$(stat -c %i \"$t/d/sub/a-copy.bin\")\" ] && [ \"$(stat -c %h \"$t/d/u.bin\")\" = 1 ] && bin/jdupes -r -d -N \"$t/e\" > /dev/null && [ ! -e \"$t/e/sub/a-copy.bin\" ] && [ ! -e \"$t/e/sub/s2\" ] && [ -e \"$t/e/a.bin\" ] && [ -e \"$t/e/s1\" ] && [ -e \"$t/e/u.bin\" ] && echo 'jdupes 1.31.2: two sets of duplicates found and hard-linked in one tree, and in a copy of it the second copies deleted'" }