Package: sbuild
Version: 0.59.1~rc1
Severity: minor

The documentation (sbuild(1)) claims that '-C' is accepted as an alias
for '--check-depends-algorithm', but the code does not handle '-C',
and so it is treated as an error.

Trivial patch attached.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (600, 'stable'), (300, 'unstable'), (300, 'testing'), (200, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sbuild depends on:
ii  adduser               3.110              add and remove users and groups
ii  libsbuild-perl        0.59.1~rc1         Tool for building Debian binary pa
ii  perl                  5.10.0-19lenny2    Larry Wall's Practical Extraction 
ii  perl-modules          5.10.0-19lenny2    Core Perl modules

Versions of packages sbuild recommends:
ii  debootstrap                 1.0.10lenny1 Bootstrap a basic Debian system
ii  fakeroot                    1.11         Gives a fake root environment

Versions of packages sbuild suggests:
pn  deborphan                     <none>     (no description available)
ii  wget                          1.11.4-2   retrieves files from the web

-- no debconf information
>From 1c720da1d90d9ec5ffac1f02a1410b2d201488f5 Mon Sep 17 00:00:00 2001
From: Nelson Elhage <nelh...@mit.edu>
Date: Mon, 14 Sep 2009 18:23:00 -0400
Subject: [PATCH] Accept -C for --check-depends-algorithm

Signed-off-by: Nelson Elhage <nelh...@mit.edu>
---
 lib/Sbuild/Options.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Sbuild/Options.pm b/lib/Sbuild/Options.pm
index 31a98c5..b7248f5 100644
--- a/lib/Sbuild/Options.pm
+++ b/lib/Sbuild/Options.pm
@@ -75,7 +75,7 @@ sub set_options {
 		       "add-conflicts-indep=s" => sub {
 			   push(@{$self->get_conf('MANUAL_CONFLICTS_INDEP')}, $_[1]);
 		       },
-		       "check-depends-algorithm=s" => sub {
+		       "C|check-depends-algorithm=s" => sub {
 			   $self->set_conf('CHECK_DEPENDS_ALGORITHM', $_[1]);
 		       },
 		       "b|batch" => sub {
-- 
1.6.4

Reply via email to