r48904 - in /trunk/libconfig-model-perl/debian/dh: dh_config_model_upgrade postinst-config-model
ddumont-guest at users.alioth.debian.org
ddumont-guest at users.alioth.debian.org
Thu Dec 17 16:25:13 UTC 2009
Author: ddumont-guest
Date: Thu Dec 17 16:25:05 2009
New Revision: 48904
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=48904
Log:
follow standards
Modified:
trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade
trunk/libconfig-model-perl/debian/dh/postinst-config-model
Modified: trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade?rev=48904&op=diff
==============================================================================
--- trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade (original)
+++ trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade Thu Dec 17 16:25:05 2009
@@ -37,6 +37,10 @@
}
);
+
+# See debhelper(7)
+exit if $dh{NO_ACT};
+
my @do_packages = @{$dh{DOPACKAGES}} ;
unless (@do_packages) {
Modified: trunk/libconfig-model-perl/debian/dh/postinst-config-model
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/dh/postinst-config-model?rev=48904&op=diff
==============================================================================
--- trunk/libconfig-model-perl/debian/dh/postinst-config-model (original)
+++ trunk/libconfig-model-perl/debian/dh/postinst-config-model Thu Dec 17 16:25:05 2009
@@ -1,6 +1,10 @@
# In case of error (error in configuration file or model bug), the
# configuration file is left as is.
-echo "config-edit is upgrading %PACKAGE% configuration with model %MODEL%."
-config-edit -model %MODEL% -ui none -save %OPTION% || \
- echo "WARNING: upgrade with config-edit failed: Run 'config-edit -model %MODEL% -force %OPTION%' and save the configuration."
+# testing perl is required to avoid problem in embedded environements
+if [ -x /usr/bin/perl ]
+then
+ echo "config-edit is upgrading %PACKAGE% configuration with model %MODEL%."
+ config-edit -model %MODEL% -ui none -save %OPTION% || \
+ echo "WARNING: upgrade with config-edit failed: Run 'config-edit -model %MODEL% -force %OPTION%' and save the configuration."
+fi
More information about the Pkg-perl-cvs-commits
mailing list