string saçmalığı yerine util'deki removepathprefix'i kullan.

This commit is contained in:
Barış Metin
2005-06-24 20:15:04 +00:00
parent 992a3b4285
commit 5fab57ec53
+1 -1
View File
@@ -192,7 +192,7 @@ class PisiBuild:
for pinfo in package.paths:
path = install_dir + pinfo.pathname
for fpath, fhash in util.get_file_hashes(path):
frpath = fpath[len(install_dir):] # relative path
frpath = util.removepathprefix(install_dir, fpath) # relative path
ftype = getFileType(frpath, package.paths)
fsize = str(os.path.getsize(fpath))
files.append(FileInfo(frpath, ftype, fsize, fhash))