summaryrefslogtreecommitdiff
path: root/db-sync
diff options
context:
space:
mode:
Diffstat (limited to 'db-sync')
-rwxr-xr-xdb-sync8
1 files changed, 7 insertions, 1 deletions
diff --git a/db-sync b/db-sync
index 58e211d..b26e917 100755
--- a/db-sync
+++ b/db-sync
@@ -178,6 +178,12 @@ init() {
unset blacklist whitelists _arch _repo repo_file
}
+fatal_error() {
+ local mesg=$1; shift
+ error "$mesg" "$@"
+ exit 1
+}
+
trap_exit() {
local signal=$1; shift
echo
@@ -188,7 +194,7 @@ trap_exit() {
source "$(dirname "$(readlink -e "$0")")/config"
source "$(dirname "$(readlink -e "$0")")/db-sync.conf"
-source "$(dirname "$(readlink -e "$0")")/libremessages"
+source "$(librelib messages)"
# Check variables presence
for var in DBEXT FILESEXT mirror mirrorpath WORKDIR BLACKLIST_FILE FTP_BASE ARCHSRCPOOLS ARCHPKGPOOLS; do