From 5c45e8b40a353148aa9dfe308830b394d0ffa18e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 18 Jun 2022 21:03:21 -0700 Subject: [PATCH] [PKGBUILD] Prevent updating from overwriting the configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding the ‘config.sh’ to the backup files means that the file doesn't get overwritten when the package is updated. --- PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/PKGBUILD b/PKGBUILD index 0fad072..c258101 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,6 +10,7 @@ source=('config.sh' 'update-mirrors' 'update-mirrors.hook') md5sums=('f346650dfe6e27c04857fe818e164981' 'bf665ee254c3e6805bc9bb12f5d9cbe1' 'da17120353c50b53f7478f72bbac04e8') +backup=('etc/xdg/update-mirrors/config.sh') package() { install -Dm755 config.sh "${pkgdir}/etc/xdg/update-mirrors/config.sh"