[Piuparts-devel] Bug#628077: [PATCH] add missing post_install hook

Andreas Beckmann debian at abeckmann.de
Wed Nov 9 13:12:51 UTC 2011


available in
  git://github.com/anbe42/piuparts.git fix/628077-missing-post_install_

this obsoletes the patch sent earlier - the additional hooks will be
solved differently
----- 8< -----
Add missing post_install_* hook to install_packages_by_name().
(Closes: #628077)

Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
---
 piuparts.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/piuparts.py b/piuparts.py
index b78c69d..11cdad4 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -977,6 +977,9 @@ class Chroot:
             else:
                 self.run(["apt-get", "-y", "install"] + packages)
 
+            self.run_scripts("post_install")
+
+
     def check_for_no_processes(self):
         """Check there are no processes running inside the chroot."""
         (status, output) = run(["lsof", "-w", "+D", self.name], ignore_errors=True)
-- 
1.7.7.1






More information about the Piuparts-devel mailing list