diff options
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Dh_Getopt.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm index 7d82eea5..c610963b 100644 --- a/Debian/Debhelper/Dh_Getopt.pm +++ b/Debian/Debhelper/Dh_Getopt.pm @@ -48,6 +48,11 @@ sub AddPackage { my($option,$value)=@_; } } +# Adds packages to the list of debug packages. +sub AddDebugPackage { my($option,$value)=@_; + push @{$options{DEBUGPACKAGES}}, $value; +} + # Add a package to a list of packages that should not be acted on. sub ExcludePackage { my($option,$value)=@_; $exclude_package{$value}=1; @@ -80,6 +85,8 @@ sub parseopts { "p=s" => \&AddPackage, "package=s" => \&AddPackage, + "dbg-package=s" => \&AddDebugPackage, + "s" => \&AddPackage, "same-arch" => \&AddPackage, @@ -153,6 +160,8 @@ sub parseopts { "name=s" => \$options{NAME}, + "keep-debug" => \$options{KEEP_DEBUG}, + "<>" => \&NonOption, ); |