[kernel] r15014 - in dists/trunk/linux-2.6/debian: . templates/temp.image.plain
Maximilian Attems
maks at alioth.debian.org
Tue Jan 26 17:24:09 UTC 2010
Author: maks
Date: Tue Jan 26 17:24:06 2010
New Revision: 15014
Log:
pass DEB_MAINT_PARAMS to hook scripts
hook scripts like to know the invoked maintainer script options.
Modified:
dists/trunk/linux-2.6/debian/changelog
dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst
dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm
dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst
dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog Tue Jan 26 17:11:28 2010 (r15013)
+++ dists/trunk/linux-2.6/debian/changelog Tue Jan 26 17:24:06 2010 (r15014)
@@ -68,6 +68,7 @@
(closes: #565494), ITCO_VENDOR_SUPPORT (closes: #525232), PCIEASPM
(closes: #545417).
* Enable easier debugging of Power Managment code. (closes: #478315)
+ * Pass `DEB_MAINT_PARAMS' to hook scripts. (closes: #563161)
-- Ben Hutchings <ben at decadent.org.uk> Sun, 10 Jan 2010 17:38:50 +0000
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst Tue Jan 26 17:11:28 2010 (r15013)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst Tue Jan 26 17:24:06 2010 (r15014)
@@ -853,6 +853,13 @@
}
}
+my $options;
+for (@ARGV) {
+ s,','\\'',g;
+ $options .= " '$_'";
+}
+$ENV{'DEB_MAINT_PARAMS'}="$options";
+
## Run user hook script here, if any
if ($postinst_hook) {
&run_hook("postinst", $postinst_hook);
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm Tue Jan 26 17:11:28 2010 (r15013)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm Tue Jan 26 17:24:06 2010 (r15014)
@@ -256,6 +256,13 @@
}
}
+my $options;
+for (@ARGV) {
+ s,','\\'',g;
+ $options .= " '$_'";
+}
+$ENV{'DEB_MAINT_PARAMS'}="$options";
+
## Run user hook script here, if any
if ($postrm_hook) {
&run_hook("postrm", $postrm_hook);
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst Tue Jan 26 17:11:28 2010 (r15013)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst Tue Jan 26 17:24:06 2010 (r15014)
@@ -184,6 +184,13 @@
}
+my $options;
+for (@ARGV) {
+ s,','\\'',g;
+ $options .= " '$_'";
+}
+$ENV{'DEB_MAINT_PARAMS'}="$options";
+
## Run user hook script here, if any
if (-x "$preinst_hook") {
&run_hook("preinst", $preinst_hook);
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm Tue Jan 26 17:11:28 2010 (r15013)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm Tue Jan 26 17:24:06 2010 (r15014)
@@ -264,6 +264,13 @@
}
+my $options;
+for (@ARGV) {
+ s,','\\'',g;
+ $options .= " '$_'";
+}
+$ENV{'DEB_MAINT_PARAMS'}="$options";
+
## Run user hook script here, if any
if (-x "$prerm_hook") {
&run_hook("prerm", $prerm_hook);
More information about the Kernel-svn-changes
mailing list