Kaydet (Commit) 6f2a8f21 authored tarafından Your Name's avatar Your Name

Ufak hata giderme

üst bd38fd66
......@@ -21,6 +21,7 @@ def post_install(package_name, provided_scripts,
sys.path.insert(0,pkg_path+"/"+ctx.const.scom_dir)
import package as package_py
package_py.postInstall(fromVersion, fromRelease, toVersion, toRelease)
del package_py
sys.path.pop(0)
def post_install(package_name, provided_scripts,
......@@ -34,6 +35,7 @@ def post_install(package_name, provided_scripts,
import package as package_py
if "postInstall" in dir(package_py):
package_py.postInstall(fromVersion, fromRelease, toVersion, toRelease)
del package_py
sys.path.pop(0)
def post_remove(package_name, metapath, filepath, provided_scripts=None):
......@@ -43,6 +45,7 @@ def post_remove(package_name, metapath, filepath, provided_scripts=None):
import package as package_py
if "postInstall" in dir(package_py):
package_py.postRemove(timeout=ctx.dbus_timeout)
del package_py
sys.path.pop(0)
def pre_remove(package_name, metapath, filepath):
......@@ -52,4 +55,5 @@ def pre_remove(package_name, metapath, filepath):
import package as package_py
if "postInstall" in dir(package_py):
package_py.preRemove(timeout=ctx.dbus_timeout)
del package_py
sys.path.pop(0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment