Skip to content

Commit eda9ff9

Browse files
committed
bin/debsources-backup-db: fix reading of log_file configuration option
1 parent e1c1015 commit eda9ff9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

bin/debsources-backup-db

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

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

34+
# minimal interpolation support, for the few configuration values needed here
3435
root_dir=$(grep "^root_dir:" "$conffile" | awk '{ print $2 }')
36+
log_dir=$(grep "^log_dir:" "$conffile" | awk '{ print $2 }')
37+
3538
conf_get () {
3639
local key="$1"
3740
local value=$(grep "^${key}:" "$conffile" | head -n 1 | awk '{ print $2 }')

bin/debsources-main

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

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

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

0 commit comments

Comments
 (0)