aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-06-02 19:18:08 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-06-02 19:18:08 -0300
commit6a97781ba4d9ab8359a52860032ce6c34b1a7006 (patch)
tree1e7f91739a5a32f2e8313b3c5e2c5a278bb34a0f
parentremoved deprecated method g_octave._parse_requirements (diff)
downloadg-octave-6a97781ba4d9ab8359a52860032ce6c34b1a7006.tar.gz
g-octave-6a97781ba4d9ab8359a52860032ce6c34b1a7006.tar.bz2
g-octave-6a97781ba4d9ab8359a52860032ce6c34b1a7006.zip
added method g_octave.DescriptionTree,packages
-rw-r--r--g_octave/description_tree.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/g_octave/description_tree.py b/g_octave/description_tree.py
index d148994..d666347 100644
--- a/g_octave/description_tree.py
+++ b/g_octave/description_tree.py
@@ -110,3 +110,14 @@ class DescriptionTree(object):
maxstr = version
return maxstr
+
+
+ def packages(self):
+
+ packages = []
+
+ for cat in self.pkg_list:
+ for pkg in self.pkg_list[cat]:
+ packages.append(pkg['name'])
+
+ return packages