Skip to content

Commit

Permalink
bin/debsources-backup-db: fix reading of log_file configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
zacchiro committed Sep 14, 2015
1 parent e1c1015 commit eda9ff9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion bin/debsources-backup-db
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (C) 2014 The Debsources developers <[email protected]>.
# Copyright (C) 2014-2015 The Debsources developers <[email protected]>.
# See the AUTHORS file at the top-level directory of this distribution and at
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD
#
Expand Down Expand Up @@ -31,7 +31,10 @@ fi
umask 0002
export LANG=C

# minimal interpolation support, for the few configuration values needed here
root_dir=$(grep "^root_dir:" "$conffile" | awk '{ print $2 }')
log_dir=$(grep "^log_dir:" "$conffile" | awk '{ print $2 }')

conf_get () {
local key="$1"
local value=$(grep "^${key}:" "$conffile" | head -n 1 | awk '{ print $2 }')
Expand Down
5 changes: 2 additions & 3 deletions bin/debsources-main
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (C) 2013-2014 The Debsources developers <[email protected]>.
# Copyright (C) 2013-2015 The Debsources developers <[email protected]>.
# See the AUTHORS file at the top-level directory of this distribution and at
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD
#
Expand Down Expand Up @@ -36,8 +36,7 @@ fi
umask 0002
export LANG=C

# minimal interpolation support, for the few configuration values needed
# by the update driver
# minimal interpolation support, for the few configuration values needed here
root_dir=$(grep "^root_dir:" "$conffile" | awk '{ print $2 }')
log_dir=$(grep "^log_dir:" "$conffile" | awk '{ print $2 }')

Expand Down

0 comments on commit eda9ff9

Please sign in to comment.