Kaydet (Commit) e9f6b2d3 authored tarafından Eray Özkural's avatar Eray Özkural

* provides/conflicts seysileri

üst edb4071a
......@@ -840,14 +840,26 @@ Override
\series default
Paketin almas/ilevini yerine getirmesi iin, sistemde olmamas gereken
paketleri belirtir.
paketleri belirtir, bu rnein ayn dosyay iki paketin de tamas durumunda
\series bold
\series default
Olmamas gereken paket adn verir.
\layout Itemize
\series bold
\series default
FIXME: ????????????????????????
Paketin salad OMAR OM ayaklarnn bir listesini verir.
\series bold
\series default
omar OM ayann adn verir.
\layout Itemize
......@@ -64,6 +64,8 @@ def install(package_fn):
packagedb.add_package(metadata.package) # terrible solution it seems
# check conflicts
# check dependencies
if not dependency.installable(metadata.package.name):
raise InstallError("Package not installable")
......@@ -221,6 +221,10 @@ class PackageInfo(object):
self.paths = [PathInfo(x) for x in getAllNodes(node, "Files/Path")]
historyElts = getAllNodes(node, "History/Update")
self.history = [UpdateInfo(x) for x in historyElts]
conflElts = getAllNodes(node, "Conflicts/Package")
self.conflicts = map(getNodeText, conflElts)
provElts = getAllNodes(node, "Provides/OM")
self.provides = map(getNodeText, provElts)
def elt(self, xml):
node = xml.newNode("Package")
......@@ -241,6 +245,10 @@ class PackageInfo(object):
xml.addNodeUnder(node, "Files", path.elt(xml))
for update in self.history:
xml.addNodeUnder(node, "History", update.elt(xml))
for conflict in self.conflicts:
xml.addTextNodeUnder(node, "Conflicts/Package", conflict)
for om in self.provides:
xml.addTextNodeUnder(node, "Provides/OM", om)
return node
def verify(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment