parser.add_option("-e", "--editor", default="/etc/alternatives/editor",
help="Specify editor to use in interactive mode. Default "+
"is /etc/alternatives/editor")
+parser.add_option("", "--pretty", action="store_true", default=False,
+ help="Produce human-readable index.xml")
(options, args) = parser.parse_args()
apps_disabled += 1
of = open(os.path.join('repo','index.xml'), 'wb')
-output = doc.toxml()
+if options.pretty:
+ output = doc.toprettyxml()
+else:
+ output = doc.toxml()
of.write(output)
of.close()