\n") outfile.write("\n") blah=list(reverse) blah.sort() for i in blah: out=i if "posix" in reverse[i]: out='[%s]' % (i,out) elif "lsb" in reverse[i]: out='<%s>' % (i,out) elif "development" in reverse[i]: out='(%s)' % (i,out) elif "toolbox" in reverse[i]: out='{%s}' % out elif "klibc_cmd" in reverse[i]: out='=%s=' % out elif "sash_cmd" in reverse[i]: out='#%s#' % out elif "sbase_cmd" in reverse[i]: out='@%s@' % out elif "beastiebox_cmd" in reverse[i]: out='*%s*' % out elif "request" in reverse[i]: out='+%s+' % (i,out) elif "ready" in reverse[i]: pass else: sys.stderr.write("unknown %s %s\n" % (i, reverse[i])) if "ready" in reverse[i] or "pending" in reverse[i]: done.append(out) out='
%s' % out else: pending.append(out) outfile.write(out+"\n") print "done=%s" % len(done) outfile.write("
\n" % "\n".join(pending)) outfile.write("%s
\n" % "\n".join(done))%s