- don't add pre/post sh scripts to the package. These will be added as additional files. And ideally we won't use any sh scripts for pre/post...

This commit is contained in:
Barış Metin
2005-10-04 07:22:31 +00:00
parent 7841630db4
commit c0849770f5
-10
View File
@@ -517,16 +517,6 @@ 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())