summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-01-08 23:33:25 +0000
committerjoeyh <joeyh>2006-01-08 23:33:25 +0000
commit0d519c8fd379afbed7ff4ec1c141e0b4097bcd37 (patch)
tree94efcf511338b75244ea0d3b8c551990157a7449 /Debian
parent753147350cc904f69a35255fe7dd948658ea5ae4 (diff)
downloaddebhelper-0d519c8fd379afbed7ff4ec1c141e0b4097bcd37.tar.gz
r1849: * dh_installinit: If run with -o, do the inverse of -n and only5.0.14
set up maintainer script snippets, w/o installing any files. Useful for those edge cases where the init script is provided by upstream and not easily installed by dh_installinit but where it's worth letting it manage the maintainer scripts anyway. Closes: #140881, #184980 * -o might be added for other similar commands later if there is any reason to. And yeah, it means that -no is close to a no-op..
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index 0c807b72..c7c831ca 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -94,7 +94,9 @@ sub parseopts {
"no-package=s" => \&ExcludePackage,
"n" => \$options{NOSCRIPTS},
- "noscripts" => \$options{NOSCRIPTS},
+ "noscripts" => \$options{ONLYSCRIPTS},
+ "o" => \$options{ONLYSCRIPTS},
+ "onlyscripts" => \$options{ONLYSCRIPTS},
"x" => \$options{INCLUDE_CONFFILES}, # is -x for some unknown historical reason..
"include-conffiles" => \$options{INCLUDE_CONFFILES},