- 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:
@@ -517,16 +517,6 @@ class PisiBuild:
|
|||||||
pcomar.script)
|
pcomar.script)
|
||||||
pkg.add_to_package(fname)
|
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
|
# add xmls and files
|
||||||
os.chdir(self.bctx.pkg_dir())
|
os.chdir(self.bctx.pkg_dir())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user