projects
/
platform
/
upstream
/
crda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a9abe44
)
sort rules within collections
author
Johannes Berg
<johannes@sipsolutions.net>
Sat, 24 May 2008 23:23:41 +0000
(
01:23
+0200)
committer
Johannes Berg
<johannes@sipsolutions.net>
Sat, 24 May 2008 23:23:41 +0000
(
01:23
+0200)
db2bin.py
patch
|
blob
|
history
diff --git
a/db2bin.py
b/db2bin.py
index
ed551bf
..
014f717
100755
(executable)
--- a/
db2bin.py
+++ b/
db2bin.py
@@
-75,6
+75,8
@@
for coll in collections:
reg_rules_collections[coll] = output.tell()
# struct regdb_file_reg_rules_collection
be32(output, len(coll))
reg_rules_collections[coll] = output.tell()
# struct regdb_file_reg_rules_collection
be32(output, len(coll))
+ coll = list(coll)
+ coll.sort(cmp=lambda x, y: cmp(bands[x[0]], bands[y[0]]))
for regrule in coll:
be32(output, reg_rules[regrule])
for regrule in coll:
be32(output, reg_rules[regrule])