binary pakete {post,pre}{install,remove} betikleri eklensin

This commit is contained in:
S.Çağlar Onur
2005-10-01 21:39:05 +00:00
parent 52a9057153
commit 92ec25cd28
+10
View File
@@ -483,6 +483,16 @@ class PisiBuild:
pcomar.script)
pkg.add_to_package(fname)
# add {post,pre}{install,remove} scripts to package if exists
prefix_list = [".preinstall", ".preremove", \
".postinstall", ".preinstall"]
for file in prefix_list:
filename = package.name + file
if os.path.exists(filename):
pkg.add_to_package(filename)
ctx.ui.info(_("%s added to PISI package %s.") % (filename, name))
# add xmls and files
os.chdir(self.bctx.pkg_dir())