diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-01 16:34:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-01 16:34:00 +0000 |
| commit | 45520c3244dd37982916f896a78a201fcf40457f (patch) | |
| tree | b52a5e53c05935c8a522a4bb545fad3b60669f85 /tools | |
| parent | 957def11cb6889913bf1c59f6625fd6b15ecc16c (diff) | |
some stuff is exact
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/themeupdate/themeupdate.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/themeupdate/themeupdate.py b/tools/themeupdate/themeupdate.py index a6d7cd07..171be0b9 100755 --- a/tools/themeupdate/themeupdate.py +++ b/tools/themeupdate/themeupdate.py @@ -59,12 +59,22 @@ def simple_replace(data): def remove(data): invalid = [] invalid.append('toolbar') - invalid.append('menu.bullet') + for inv in invalid: + while 1: + i, key, nul = find_key(data, inv) + if i >= 0: + out(key + ' is no longer supported.\nRemove (Y/n)? ') + if read_bool(): + out('Removing "' + key + '"\n') + data.pop(i) + else: + break invalid.append('rootCommand') + invalid.append('menu.bullet') invalid.append('menu.frame.justify') for inv in invalid: while 1: - i, key, nul = find_key(data, inv) + i, key, nul = find_key(data, inv, True) if i >= 0: out(key + ' is no longer supported.\nRemove (Y/n)? ') if read_bool(): |
