Allan McRae pushed to branch master at Pacman / Pacman Commits: 31ffbc94 by Vekhir at 2023-11-04T00:01:22+00:00 Delete entire $srcdir upon clean build Currently, the file glob used to clean the $srcdir misses dotfiles. This commit instead removes the directory entirely and recreates it. Since the directory has to exist prior to deletion, the creation commands are duplicated. Perhaps they could be moved to a function later on. The directory cannot be removed while inside it, so the directory change is moved down the line. One important insight here is that almost all functions after it are actually independent of $pwd, allowing the optimization of just not changing directory. They do however depend on the existence of $srcdir, so it has to be recreated. The only exception to this is `extract_sources` which depends on $pwd being $srcdir. An alternative proposal wanted to extend the file matching for deletion, but it was deemed impractical. - - - - - 1 changed file: - scripts/makepkg.sh.in View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/31ffbc94cad9c0cb33c1c778... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/31ffbc94cad9c0cb33c1c778... You're receiving this email because of your account on gitlab.archlinux.org.