summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2016-10-02 06:05:10 +0000
committerNiels Thykier <niels@thykier.net>2016-10-02 06:15:58 +0000
commit75fe3f9a91438ec6ed6dbee42fac56213ed32eb7 (patch)
tree30c22b17bb9c6891489ff69a214d4a5279340380
parent213d231d51cd5d5b2e1505753a551370b0adc2cf (diff)
downloaddebhelper-75fe3f9a91438ec6ed6dbee42fac56213ed32eb7.tar.gz
Introduce --no-stop-on-upgrade as alias of -r
Signed-off-by: Niels Thykier <niels@thykier.net>
-rw-r--r--debian/changelog5
-rwxr-xr-xdh_installinit3
-rwxr-xr-xdh_systemd_start5
-rw-r--r--man/po4a/po/de.po8
-rw-r--r--man/po4a/po/es.po6
-rw-r--r--man/po4a/po/fr.po8
-rw-r--r--man/po4a/po/pt.po8
7 files changed, 25 insertions, 18 deletions
diff --git a/debian/changelog b/debian/changelog
index 8a1b490d..a6aeafa1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,11 @@ debhelper (10.2) UNRELEASED; urgency=medium
* Apply patch from Michael Biebl to undo a major
regression where all of debhelpers functionality was
missing (introduced in 10.1). (Closes: #839557)
+ * dh_installinit,dh_systemd_start: Introduce a new
+ --no-stop-on-upgrade as an alternative to
+ --no-restart-on-upgrade. This new option should be
+ reduce the confusion of what it does. Thanks to
+ Michael Biebl for the suggestion.
-- Niels Thykier <niels@thykier.net> Sun, 02 Oct 2016 05:50:21 +0000
diff --git a/dh_installinit b/dh_installinit
index f5c96dc3..a79113ab 100755
--- a/dh_installinit
+++ b/dh_installinit
@@ -101,7 +101,7 @@ Undo a previous B<--restart-after-upgrade> (or the default of compat
stopped in the F<prerm> script and started again in the F<postinst>
script.
-=item B<-r>, B<--no-restart-on-upgrade>
+=item B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>
Do not stop init script on upgrade.
@@ -168,6 +168,7 @@ $dh{RESTART_AFTER_UPGRADE} = 1 if not compat(9);
init(options => {
"r" => \$dh{R_FLAG},
+ 'no-stop-on-upgrade' => \$dh{R_FLAG},
"no-restart-on-upgrade" => \$dh{R_FLAG},
"no-start" => \$dh{NO_START},
"R|restart-after-upgrade!" => \$dh{RESTART_AFTER_UPGRADE},
diff --git a/dh_systemd_start b/dh_systemd_start
index 9914bbd1..6cee5c01 100755
--- a/dh_systemd_start
+++ b/dh_systemd_start
@@ -13,7 +13,7 @@ use Cwd qw(getcwd abs_path);
=head1 SYNOPSIS
-B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] [B<--no-restart-on-upgrade>] [S<I<unit file> ...>]
+B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] [B<--no-stop-on-upgrade>] [S<I<unit file> ...>]
=head1 DESCRIPTION
@@ -51,7 +51,7 @@ Undo a previous B<--restart-after-upgrade> (or the default of compat
stopped in the F<prerm> script and started again in the F<postinst>
script.
-=item B<-r>, B<--no-restart-on-upgrade>
+=item B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>
Do not stop service on upgrade.
@@ -80,6 +80,7 @@ $dh{RESTART_AFTER_UPGRADE} = 1 if not compat(9);
init(options => {
"r" => \$dh{R_FLAG},
+ 'no-stop-on-upgrade' => \$dh{R_FLAG},
"no-restart-on-upgrade" => \$dh{R_FLAG},
"no-start" => \$dh{NO_START},
"R|restart-after-upgrade!" => \$dh{RESTART_AFTER_UPGRADE},
diff --git a/man/po4a/po/de.po b/man/po4a/po/de.po
index dd798aee..8fa6a41b 100644
--- a/man/po4a/po/de.po
+++ b/man/po4a/po/de.po
@@ -5928,8 +5928,8 @@ msgstr ""
#. type: =item
#: dh_installinit:104 dh_systemd_start:54
-msgid "B<-r>, B<--no-restart-on-upgrade>"
-msgstr "B<-r>, B<--no-restart-on-upgrade>"
+msgid "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
+msgstr "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
#. type: textblock
#: dh_installinit:106
@@ -8535,10 +8535,10 @@ msgstr ""
#: dh_systemd_start:16
msgid ""
"B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] "
-"[B<--no-restart-on-upgrade>] [S<I<unit file> ...>]"
+"[B<--no-stop-on-upgrade>] [S<I<unit file> ...>]"
msgstr ""
"B<dh_systemd_start> [S<I<Debhelper-Optionen>>] [B<--restart-after-upgrade>] "
-"[B<--no-restart-on-upgrade>] [S<I<Unit-Datei> …>]"
+"[B<--no-stop-on-upgrade>] [S<I<Unit-Datei> …>]"
#. type: textblock
#: dh_systemd_start:20
diff --git a/man/po4a/po/es.po b/man/po4a/po/es.po
index 3cd22c09..e4dc0d17 100644
--- a/man/po4a/po/es.po
+++ b/man/po4a/po/es.po
@@ -6257,8 +6257,8 @@ msgstr ""
# type: =item
#. type: =item
#: dh_installinit:104 dh_systemd_start:54
-msgid "B<-r>, B<--no-restart-on-upgrade>"
-msgstr "B<-r>, B<--no-restart-on-upgrade>"
+msgid "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
+msgstr "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
# type: textblock
#. type: textblock
@@ -9117,7 +9117,7 @@ msgstr ""
#| "[S<I<file> ...>]"
msgid ""
"B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] "
-"[B<--no-restart-on-upgrade>] [S<I<unit file> ...>]"
+"[B<--no-stop-on-upgrade>] [S<I<unit file> ...>]"
msgstr ""
"B<dh_installdocs> [S<I<opciones-de-debhelper>>] [B<-A>] [B<-X>I<elemento>] "
"[S<I<fichero> ...>]"
diff --git a/man/po4a/po/fr.po b/man/po4a/po/fr.po
index 2981e3d3..92dff158 100644
--- a/man/po4a/po/fr.po
+++ b/man/po4a/po/fr.po
@@ -6449,8 +6449,8 @@ msgstr ""
# type: =item
#. type: =item
#: dh_installinit:104 dh_systemd_start:54
-msgid "B<-r>, B<--no-restart-on-upgrade>"
-msgstr "B<-r>, B<--no-restart-on-upgrade>"
+msgid "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
+msgstr "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
# type: textblock
#. type: textblock
@@ -9369,10 +9369,10 @@ msgstr ""
#: dh_systemd_start:16
msgid ""
"B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] "
-"[B<--no-restart-on-upgrade>] [S<I<unit file> ...>]"
+"[B<--no-stop-on-upgrade>] [S<I<unit file> ...>]"
msgstr ""
"B<dh_systemd_start> [S<I<options_de_debhelper>>] [B<--restart-after-"
-"upgrade>] [B<--no-restart-on-upgrade>] [S<I<fichier_unit> ...>]"
+"upgrade>] [B<--no-stop-on-upgrade>] [S<I<fichier_unit> ...>]"
# type: textblock
#. type: textblock
diff --git a/man/po4a/po/pt.po b/man/po4a/po/pt.po
index b09ea1d5..f4ceaf05 100644
--- a/man/po4a/po/pt.po
+++ b/man/po4a/po/pt.po
@@ -5868,8 +5868,8 @@ msgstr ""
#. type: =item
#: dh_installinit:104 dh_systemd_start:54
-msgid "B<-r>, B<--no-restart-on-upgrade>"
-msgstr "B<-r>, B<--no-restart-on-upgrade>"
+msgid "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
+msgstr "B<-r>, B<--no-stop-on-upgrade>, B<--no-restart-on-upgrade>"
#. type: textblock
#: dh_installinit:106
@@ -8466,10 +8466,10 @@ msgstr ""
#: dh_systemd_start:16
msgid ""
"B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] "
-"[B<--no-restart-on-upgrade>] [S<I<unit file> ...>]"
+"[B<--no-stop-on-upgrade>] [S<I<unit file> ...>]"
msgstr ""
"B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] "
-"[B<--no-restart-on-upgrade>] [S<I<unit file> ...>]"
+"[B<--no-stop-on-upgrade>] [S<I<unit file> ...>]"
#. type: textblock
#: dh_systemd_start:20