aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-12 15:48:19 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-13 10:12:20 +0200
commitdf5b3585299628def438de1b7569b0677491ea34 (patch)
tree2c0157c1bd478b2407daea4762d505234180300c /scripts
parent3adf6c6ffefbb1b0850401f3415d321ef2d2e42c (diff)
downloadlinux-conf-perf-df5b3585299628def438de1b7569b0677491ea34.tar.gz
linux-conf-perf-df5b3585299628def438de1b7569b0677491ea34.tar.bz2
linux-conf-perf-df5b3585299628def438de1b7569b0677491ea34.zip
Fix if generated existing configuration
When some generator tries to register already generated solution, it shouldn't be registered.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/configurations.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/configurations.py b/scripts/configurations.py
index c58f3f5..2909578 100644
--- a/scripts/configurations.py
+++ b/scripts/configurations.py
@@ -149,6 +149,7 @@ def __register_conf__(con, conf_num, generator):
if os.path.isfile(filen):
if compare(filen, wfile):
print("I: Generated existing configuration.")
+ return
else:
print("W: Generated configuration with collision hash.")
# TODO this might have to be tweaked