Kaydet (Commit) 06552f15 authored tarafından root's avatar root

sulonun eksik yaptigi yerlerle ugrasiyom

üst fc5adf51
......@@ -668,7 +668,7 @@ class Remove(AtomicOperation):
def run_postremove(self):
if ('postOps' in self.metadata.package.isA):
ctx.ui.info(_('Post-remove configuration have been run for \"{}\"'.format(self.package_name)),color='brightyellow')
self.trigger.postremove(self.ops_script)
self.trigger.postremove(self.package.pkg_dir())
def update_databases(self):
self.remove_db()
......
......@@ -26,6 +26,7 @@ import inary.data
import inary.errors
import inary.context as ctx
import inary.trigger
import os
def reconfigure(packages=None):
......@@ -38,7 +39,7 @@ def reconfigure(packages=None):
pkginfo = installdb.get_package(x)
ops_Dir=os.path.join(ctx.config.packages_dir(), "postoperations")
ctx.ui.notify(inary.ui.configuring, package=pkginfo, files=None)
inary.trigger.Trigger().postinstall(ops_Dir, x)
inary.trigger.Trigger().postinstall(ops_Dir)
ctx.ui.notify(inary.ui.configured, package=pkginfo, files=None)
installdb.clear_pending(x)
......
......@@ -99,7 +99,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
_("Downloading") + str(" [ {:>" + str(lndig) + "} / {} ] => [{}]").format(order.index(x) + 1, len(order),
x), color="yellow")
install_op = atomicoperations.Install.from_name(x)
install_op.store_inary_files()
install_op.store_postops()
paths.append(install_op.package_fname)
if x in extra_packages or (extra and x in A):
......@@ -128,6 +128,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
for path in paths:
install_op = atomicoperations.Install(path)
ctx.ui.info(_("Installing") + str(" [ {:>"+str(lndig)+ "} / {} ]").format(paths.index(path) + 1, len(paths)), color="yellow")
install_op.store_inary_files()
install_op.install(False)
try:
with open(os.path.join(ctx.config.info_dir(), ctx.const.installed_extra), "a") as ie_file:
......@@ -136,6 +137,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
except KeyError:
pass
for path in paths:
install_op = atomicoperations.Install(path)
install_op.postinstall()
......
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