AUR build from pamac-gtk, source gets deleted before build and downloaded again instead of being updated incrementally via git clone
Pamac Version
10.2.2
Libpamac Version
11.1.3
Desktop environment
Mate
What's not working
During build of an AUR the source gets deleted (and then downloaded again from scratch) instead of being updated via git to match the remote source.
When I'm updating/building a new version of the AUR waterfox-classic-kpe
using pamac (pamac-gtk
) and the source dir Waterfox
from the last build still exists in the build dir, then this source dir gets deleted first (before the git clone
takes place). Seems like this happens when the AUR package info is updated from the repo.
This makes the monthly build take much longer, as the git index-pack
step alone takes almost two hours (on my ages old machine). Also the full 5 GB of source files are always downloaded again, which is a waste of traffic. Additionally it causes lots of disk IO which is annoying on a system with HDD instead of SSD.
Is there a way to prevent the source from the previous build being deleted?
As a workaround I moved the source dir from the build dir after a completed build to somewhere else and "injected" it back into the build dir right after I saved the PKGBUILD (after customizing it for build, j=2) and before starting the actual build.
How to reproduce?
- build AUR
waterfox-classic-kpe
using pamac-gtk - build 2nd time (and observe source being fetched from scratch)