On Tue, Nov 17, 2020 at 10:41:41AM +0800, Wu Fengguang wrote:
On Tue, Nov 17, 2020 at 10:33:49AM +0800, Wang Yong wrote:
On Tue, Nov 17, 2020 at 10:22:23AM +0800, Wu Fengguang wrote:
Can we limit the find depth and/or let the base dir more exact?
/var => /var/cache/pacman/pkg/
change find dir to default cache dir
Good. btw, .xz may not be the only suffix. Please check include other zip format.
Valid suffixes are .tar.gz, .tar.bz2, .tar.xz, .tar.zst, .tar.lzo, .tar.lrz, .tar.lz4, .tar.lz and .tar.Z, or simply .tar to disable compression entirely.
$ cat /etc/makepkg.conf | grep COMPRESSION COMPRESSGZ=(gzip -c -f -n) COMPRESSBZ2=(bzip2 -c -f) COMPRESSXZ=(xz -c -z -) COMPRESSZST=(zstd -c -z -q -) COMPRESSLRZ=(lrzip -q) COMPRESSLZO=(lzop -q) COMPRESSZ=(compress -c -f) COMPRESSLZ4=(lz4 -q) COMPRESSLZ=(lzip -c -f)
makepkg and packages from archlinux use .xz by default
$ cat /etc/makepkg.conf | grep PKGEXT PKGEXT='.pkg.tar.xz'
so i think use *.pkg.tar* is more general
reference: https://wiki.archlinux.org/index.php/Arch_Build_System https://opentuna.cn/archlinuxarm/aarch64/ https://jlk.fjfi.cvut.cz/arch/manpages/man/makepkg.conf.5
Thanks, Wang Yong