anaconda/comps_parse.py

glen cvs at pld-linux.org
Thu May 25 01:52:37 CEST 2006


Author: glen
Date: Thu May 25 01:52:35 2006
New Revision: 7439

Added:
   anaconda/comps_parse.py   (contents, props changed)
Log:
- displays comps.xml. at least validates it

Added: anaconda/comps_parse.py
==============================================================================
--- (empty file)
+++ anaconda/comps_parse.py	Thu May 25 01:52:35 2006
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import rhpl.comps
+import sys
+
+comps = rhpl.comps.Comps(sys.argv[1])
+for group in comps.groups.values():
+    pkgs = []
+    for (type, pkg) in group.packages.values():
+        if type == u'mandatory':
+            pkgs.append(pkg)
+    print group.name, pkgs
+


More information about the pld-cvs-commit mailing list