* unicode sacmalaligi

* hesapla gusel gusel paket ekleme sirasini
This commit is contained in:
Eray Özkural
2005-07-28 19:44:15 +00:00
parent a36c7f00d6
commit 0b25f47b9b
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class PGraph(digraph):
if not pkg in self.vertices():
pkg2 = packagedb.get_package(depinfo.package)
self.add_edge(pkg, depinfo.package, ('d', depinfo),
self.add_edge(str(pkg), str(depinfo.package), ('d', depinfo),
(pkg1.version, pkg1.release),
(pkg2.version, pkg2.release) )
@@ -31,7 +31,7 @@ class PGraph(digraph):
if not pkg in self.vertices():
pkg2 = packagedb.get_package(depinfo.package)
self.add_biedge(pkg, conflinfo.package, ('c', conflinfo)
self.add_biedge(str(pkg), str(conflinfo.package), ('c', conflinfo)
(pkg1.version, pkg1.release),
(pkg2.version, pkg2.release) )
+4 -1
View File
@@ -58,6 +58,7 @@ def install_pkg_names(A):
# find the "install closure" graph of G_f by package
# set A using packagedb
print A
B = A
state = {}
while len(B) > 0:
@@ -73,7 +74,9 @@ def install_pkg_names(A):
G_f.add_dep(x, dep)
B = Bp
G_f.write_graphviz(sys.stdout)
l = G_f.topological_sort()
l.reverse()
print l
def remove(packages):
#TODO: this for loop is just a placeholder