summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-12-16 12:33:43 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-12-16 16:45:10 -0300
commit04cfe7f54097141e809699aa50bb2a70feb02032 (patch)
tree6efa697b8ffb579f79419dbb35d11eab35f64919
parent01ab19b28593e431bb68e9386b6196c10c30b5b4 (diff)
libredbdiff-standalone: Set DBPath in both pacman.conf files
-rwxr-xr-xlibredbdiff-standalone2
1 files changed, 2 insertions, 0 deletions
diff --git a/libredbdiff-standalone b/libredbdiff-standalone
index 6ff980f..3c7a74e 100755
--- a/libredbdiff-standalone
+++ b/libredbdiff-standalone
@@ -66,6 +66,7 @@ if (( $UPDATE )) ; then
}
downloadfile "${conffile}" "Downloading Parabola pacman.conf" "https://projects.parabola.nu/abslibre.git/plain/libre/pacman/pacman.conf.x86_64"
if [[ $? == 255 ]] ; then
+ sed -i "s|^#DBPath .*|DBPath = ${dbpath}|" "${conffile}"
echo "Enabling nonprism repo in ${conffile}"
sed -i 's|^# after the header, and they will be used before the default mirrors.|# after the header, and they will be used before the default mirrors.\n\n[nonprism]\nInclude = /etc/pacman.d/mirrorlist|' "${conffile}"
echo "Enabling libre-multilib repo in ${conffile}"
@@ -78,6 +79,7 @@ if (( $UPDATE )) ; then
downloadfile "${conffilearch}" "Downloading Arch pacman.conf" "https://projects.archlinux.org/svntogit/packages.git/plain/pacman/trunk/pacman.conf.x86_64"
if [[ $? == 255 ]] ; then
+ sed -i "s|^#DBPath .*|DBPath = ${dbpatharch}|" "${conffilearch}"
echo "Setting Arch mirrorlist file in ${conffilearch}"
sed -i "s|/etc/pacman\.d/mirrorlist$|$baseconfpath/mirrorlist.archlinux|" "${conffilearch}"
echo "Enabling multilib repo in ${conffilearch}"