summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:20:31 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:41:21 -0400
commit34163178251d3237a453d5ede1bf2c47dfd96e8d (patch)
tree0d3dc095a78e37e679dc2206fe4b838975c8d850
parentbb17fdbc594db5b11d0d561af4838ce3521c59f8 (diff)
libredbdiff: always freshen generated config files
-rwxr-xr-xsrc/abslibre-tools/libredbdiff19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff
index 41bac17..1f923cc 100755
--- a/src/abslibre-tools/libredbdiff
+++ b/src/abslibre-tools/libredbdiff
@@ -217,8 +217,7 @@ main_update() {
check_vars libredbdiff statedir mirror_prbl mirror_arch || exit 1
createdir "$statedir"
-
- if [[ ! -e "$conffile_prbl" ]] ; then
+ {
msg "Generating %s %q" Parabola pacman.conf
cp -T /usr/share/pacman/defaults/pacman.conf.x86_64 "$conffile_prbl"
sed -r \
@@ -230,11 +229,7 @@ main_update() {
for repo in multilib {libre,pcr,nonprism}{,-multilib}; do
enablerepo "$repo" "$conffile_prbl"
done
- else
- warning "%q already exists. Skipping." "$conffile_prbl"
- fi
- if [[ ! -e "$conffile_arch" ]] ; then
msg "Generating %s %q" Arch pacman.conf
wget -q \
-O "$conffile_arch" \
@@ -246,21 +241,11 @@ main_update() {
-e "s|^#?Architecture\s*=.*|Architecture = x86_64|" \
-i "$conffile_arch"
enablerepo multilib "$conffile_arch"
- else
- warning "%q already exists. Skipping." "$conffile_arch"
- fi
- if [[ ! -e "$mirrorlist_prbl" ]] ; then
printf 'Server = %s\n' "$mirror_prbl" > "$mirrorlist_prbl"
- else
- warning "%q already exists. Skipping." "$mirrorlist_prbl"
- fi
- if [[ ! -e "$mirrorlist_arch" ]] ; then
printf 'Server = %s\n' "$mirror_arch" > "$mirrorlist_arch"
- else
- warning "%q already exists. Skipping." "$mirrorlist_arch"
- fi
+ }
createdir "$dbpath_prbl"
{