]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/configure.py
remove pat2021
[rust.git] / src / bootstrap / configure.py
index 2e6e9142afe6c5a1be6a5b488d0e0c7efc79c3ce..999882a1c04b0526525c21f4600e3dc0830868fc 100755 (executable)
@@ -439,7 +439,12 @@ def configure_section(lines, config):
             lines[i] = "{} = {}".format(key, to_toml(value))
             break
         if not found:
-            raise RuntimeError("failed to find config line for {}".format(key))
+            # These are used by rpm, but aren't accepted by x.py.
+            # Give a warning that they're ignored, but not a hard error.
+            if key in ["infodir", "localstatedir"]:
+                print("warning: {} will be ignored".format(key))
+            else:
+                raise RuntimeError("failed to find config line for {}".format(key))
 
 
 for section_key in config: