{ "name": "inotify-tools", "version": "4.25.9.0", "summary": "inotify-tools: inotifywait waits for and inotifywatch counts file changes in folders; libinotifytools", "category": "tool", "license": "GPL-2.0-only", "homepage": "https://github.com/inotify-tools/inotify-tools", "source": { "url": "https://deb.debian.org/debian/pool/main/i/inotify-tools/inotify-tools_4.25.9.0.orig.tar.gz", "sha256": "d33a4fd24c72c2d08893f129d724adf725b93dae96c359e4f4e9f32573cc853b" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/i/inotify-tools/", "regex": "inotify-tools_([0-9]+(?:\\.[0-9]+)+)\\.orig\\.tar\\.gz", "pin": "4.25"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "{ bin/inotifywait --help 2>&1 || true; } | has -E '^inotifywait [0-9]+(\\.[0-9]+)+$' && t=$(mktemp -d) && mkdir \"$t/d\" && { bin/inotifywait -q -m -e create -e close_write --format '%e %f' -o \"$t/events\" \"$t/d\" & echo $! > \"$t/pid\"; } && i=0 && while ! has 'CLOSE_WRITE,CLOSE bvs-file' < \"$t/events\" 2>/dev/null && [ $i -lt 50 ]; do rm -f \"$t/d/bvs-file\"; echo x > \"$t/d/bvs-file\"; sleep 0.2; i=$((i + 1)); done && has -x 'CREATE bvs-file' < \"$t/events\" && has -x 'CLOSE_WRITE,CLOSE bvs-file' < \"$t/events\" && kill \"$(cat \"$t/pid\")\" && echo 'inotify-tools: inotifywait saw a file made and written'; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }