paru
paru copied to clipboard
Paru leaves directory with broken permission after a build failure which it can't deal with
Affected Version
paru v2.1.0 - libalpm v15.0.0
Description
As soon as paru -Bi . fails, it will leave the pkg directory in d--x--x--x permission, and panick at the next time it got built, now I've seen it failed in prepare() and build(), all ends up with the same issue
Output
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'chromaprint-fftw-1.6.0-1':
error: packages failed to build: chromaprint-fftw-1.6.0-1
~/.cache/paru/clone/chromaprint-fftw master
$ nano PKGBUILD [20:50] %
~/.cache/paru/clone/chromaprint-fftw master
$ paru -Bi . [20:50] %
thread 'main' panicked at src/pkgbuild.rs:211:10:
called `Result::unwrap()` on an `Err` value: /home/timicasto/.cache/paru/clone/chromaprint-fftw/pkg
Caused by:
Permission denied (os error 13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
~/.cache/paru/clone/chromaprint-fftw master
$ l [20:51] %
total 1.6M
drwxr-xr-x 5 timicasto timicasto 4.0K Nov 13 20:50 .
drwxr-xr-x 60 timicasto timicasto 4.0K Nov 13 20:34 ..
-rw-r--r-- 1 timicasto timicasto 262 Nov 13 20:34 010-chromaprint-gtest-1.13.0-fix.patch
-rw-r--r-- 1 timicasto timicasto 1.6M Nov 13 20:50 chromaprint-1.6.0.tar.gz
drwxr-xr-x 7 timicasto timicasto 4.0K Nov 13 20:45 .git
d--x--x--x 2 timicasto timicasto 4.0K Nov 13 20:50 pkg
-rw-r--r-- 1 timicasto timicasto 1.1K Nov 13 20:50 PKGBUILD
drwxr-xr-x 4 timicasto timicasto 4.0K Nov 13 20:50 src
-rw-r--r-- 1 timicasto timicasto 608 Nov 13 20:34 .SRCINFO
~/.cache/paru/clone/chromaprint-fftw master
$ rm -r pkg [20:52] %
rm: cannot remove 'pkg': Permission denied