mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix spurious rebuild issue
Had two JSON entries with the same key, which meant you had a 50/50 chance of a rebuild being triggered depending on which entry was picked for the build. :-/
This commit is contained in:
parent
72996bc453
commit
94b7bde983
2 changed files with 4 additions and 1 deletions
|
|
@ -24,7 +24,7 @@
|
||||||
"vault": {
|
"vault": {
|
||||||
"context_name": "Key Vault",
|
"context_name": "Key Vault",
|
||||||
"menu_name": {
|
"menu_name": {
|
||||||
"appmenu.repl": {
|
"appmenu.vault": {
|
||||||
"en": "Key Vault",
|
"en": "Key Vault",
|
||||||
"ja": "キーボールト",
|
"ja": "キーボールト",
|
||||||
"zh": "密钥库",
|
"zh": "密钥库",
|
||||||
|
|
|
||||||
|
|
@ -1829,6 +1829,9 @@ fn overwrite_if_changed(new_string: &String, old_file: &str) {
|
||||||
_ => String::new(),
|
_ => String::new(),
|
||||||
};
|
};
|
||||||
if &original != new_string {
|
if &original != new_string {
|
||||||
|
// println!("file change in i18n.json detected:");
|
||||||
|
// println!("Old: {}", original);
|
||||||
|
// println!("New: {}", new_string);
|
||||||
let mut new_file = OpenOptions::new()
|
let mut new_file = OpenOptions::new()
|
||||||
.read(true)
|
.read(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue