You are not logged in.
I installed bash completion files to the legacy /etc/bash_completion.d directory using a PKGBUILD that I published on the AUR. In the new version of the package, I'm installing the bash completion files to /usr/share/bash-completion/completions/.
Should I just check if the file is present in the legacy folder and remove it in the PKGBUILD package() function? Or should I use a .install file and inform users to remove the old bash completion file? Or maybe both?
I realize many users would build PKGBUILDs inside some sort of chroot so removing files may not work in that case. This makes me think the post_install method is fine. What do you think?
Last edited by ayushnix (2021-11-14 13:57:11)
Offline
You can't and shouldn't be removing user files in the PKGBUILD package() function anyway.
Offline
If the files are part of the package, they will be removed automatically when you update.
Offline
You can't and shouldn't be removing user files in the PKGBUILD package() function anyway.
What user files?
Offline
The files in /etc/bash_completion.d
Last edited by Ammako (2021-11-14 13:21:15)
Offline
Offline
Does the terminology matter? package() function will not and should not touch anything on disk. Just $pkgdir
Last edited by Ammako (2021-11-14 13:22:07)
Offline
I'll use a .install file to inform users if needed. Removing files in a PKGBUILD wouldn't work if makepkg is run in a chroot anways.
Offline
If the files are part of the package, they will be removed automatically when you update.
Yeah, looks like the file in /etc/bash_completion.d got removed when I upgraded the package. Thanks.
Offline