diff options
author | Andrew Rabert | 2021-10-31 20:45:40 -0400 |
---|---|---|
committer | Andrew Rabert | 2021-10-31 20:45:40 -0400 |
commit | 00ad4ed752c6abd892266eb1767290e27d0cb63b (patch) | |
tree | 4ca5b72b3eb3a65d6b3b1a0e29ba22e7934f7eb4 /scons-v4.2.0.patch | |
parent | 8c20a214f11ce160cdb6d1ccbeb1deec156648f2 (diff) | |
download | aur-00ad4ed752c6abd892266eb1767290e27d0cb63b.tar.gz |
Fix compatibility with scons v4.2.0
Diffstat (limited to 'scons-v4.2.0.patch')
-rw-r--r-- | scons-v4.2.0.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scons-v4.2.0.patch b/scons-v4.2.0.patch new file mode 100644 index 000000000000..04b05e8d6ffc --- /dev/null +++ b/scons-v4.2.0.patch @@ -0,0 +1,20 @@ +--- a/SConstruct 2021-10-31 20:42:44.232084185 -0400 ++++ b/SConstruct 2021-10-31 20:42:54.063024444 -0400 +@@ -36,7 +36,7 @@ + with open(target[0].get_path(), "w") as fout: + fout.write("// autogenerated by scons Bin2H builder, do not edit by hand!\n\n") + +- if env.has_key("BIN2H_NAMESPACE"): ++ if "BIN2H_NAMESPACE" in env: + fout.write("namespace %s {\n\n" % env["BIN2H_NAMESPACE"]) + + # write down data +@@ -62,7 +62,7 @@ + for src in source], ",\n")) + fout.write("\n}\n\n") + +- if env.has_key("BIN2H_NAMESPACE"): ++ if "BIN2H_NAMESPACE" in env: + fout.write("} // namespace %s\n\n" % env["BIN2H_NAMESPACE"]) + + fout.write("/* EOF */\n") |