* bir iki duzeltme, ama Files.write() da patliyor :(
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user