* bir iki duzeltme, ama Files.write() da patliyor :(

This commit is contained in:
Eray Özkural
2005-06-21 12:42:15 +00:00
parent 0d1961dfb2
commit 62cac753b9
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ class PisiBuild:
depth = len(path.pathname)
ftype = path.fileType
print fpath, ftype, fsize, fhash
files.list.append(FileInfo(fpath, ftype, fsize, fhash))
files.append(FileInfo(fpath, ftype, fsize, fhash))
files.write(os.path.join(self.ctx.pkg_work_dir(),"files.xml"))
def buildPackages(self):
+9 -1
View File
@@ -1,5 +1,8 @@
# class for files.xml
import xmlfile
from xmlfile import XmlFile
class FileInfo:
@@ -42,6 +45,10 @@ class Files(XmlFile):
def __init__(self):
XmlFile.__init__(self, "Files")
self.list = []
def append(self, fileinfo):
self.list.append(fileinfo)
def read(self, filename):
self.readxml(filename)
@@ -51,7 +58,8 @@ class Files(XmlFile):
def write(self, filename):
self.newDOM()
print list
for x in list:
self.appendChild(x.elt(self.dom))
self.dom.appendChild(x.elt(self.dom))
+2 -1
View File
@@ -4,6 +4,7 @@
import xml.dom.minidom
from xmlfile import *
from os.path import basename
from ui import ui
class PatchInfo:
def __init__(self, filenm, ctype):
@@ -108,7 +109,7 @@ class MetaData(SpecFile):
installSize = int(self.getNodeText("Source/InstallSize"))
def write(self, filename):
ui.info("METADATA WRITE NOT IMPLEMENTED")
ui.info("METADATA WRITE NOT IMPLEMENTED\n")
pass
def verify():