[Piuparts-commits] rev 156 - in trunk: . debian

Holger Levsen holger at alioth.debian.org
Sun May 11 19:16:29 UTC 2008


Author: holger
Date: 2008-05-11 19:16:29 +0000 (Sun, 11 May 2008)
New Revision: 156

Modified:
   trunk/debian/changelog
   trunk/piuparts.py
Log:
Add support for post_upgrade custom script.


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-05-11 19:14:44 UTC (rev 155)
+++ trunk/debian/changelog	2008-05-11 19:16:29 UTC (rev 156)
@@ -26,7 +26,8 @@
     is extra (Closes: #477634).
 
   [ Holger Levsen ]
-  * Add a copyright statement to debian/copyright 
+  * Add a copyright statement to debian/copyright.
+  * Add support for post_upgrade custom script.
 
  -- Lucas Nussbaum <lucas at lucas-nussbaum.net>  Mon, 05 May 2008 13:01:01 +0200
 

Modified: trunk/piuparts.py
===================================================================
--- trunk/piuparts.py	2008-05-11 19:14:44 UTC (rev 155)
+++ trunk/piuparts.py	2008-05-11 19:16:29 UTC (rev 156)
@@ -650,6 +650,9 @@
             # of the library, and we've told apt-get not to remove
             # packages. So, we force the installation like this.
             self.install_packages_by_name(packages)
+            # Run custom scripts after upgrade
+            if settings.scriptsdir is not None:
+                self.run_scripts("post_upgrade")
             self.check_for_no_processes()
     
     def apt_get_knows(self, package_names):




More information about the Piuparts-commits mailing list