aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-08-11 14:54:59 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-08-11 14:54:59 -0400
commite3e0aad543035eeb7f6c2cc12e981894c5d441f5 (patch)
tree55c725c94cb80feadcef70fd40d266aa8ad7b75f
parent96aded6321708a9d999a35aedf6eadf1525fb7a3 (diff)
downloadgrokmirror-e3e0aad543035eeb7f6c2cc12e981894c5d441f5.tar.gz
Fix projectslist_symlinks setting
We need to make sure that we process it as a boolean. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xgrokmirror/pull.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grokmirror/pull.py b/grokmirror/pull.py
index 29aed4b..77cfa1c 100755
--- a/grokmirror/pull.py
+++ b/grokmirror/pull.py
@@ -559,7 +559,7 @@ def write_projects_list(config, manifest):
return
trimtop = config['pull'].get('projectslist_trimtop', '')
- add_symlinks = config['pull'].get('projectslist_symlinks', False)
+ add_symlinks = config['pull'].getboolean('projectslist_symlinks', False)
(dirname, basename) = os.path.split(plpath)
(fd, tmpfile) = tempfile.mkstemp(prefix=basename, dir=dirname)