On Sun, 2013-03-24 at 08:16:36 +0800, Daniel Hartwig wrote:
> On 24 March 2013 03:07, YunQiang Su <wzss...@gmail.com> wrote:
> > Package: apt
> >
> > When cross build with apt-get source -amips -b ${any_package},
> > it will call dpkg-buildpackage like:
> >
> > dpkg-buildpakage -a mips -b -uc ${any_package}
> >
> > While dpkg-buildpackage don't allow a space between a and mips

> Dpkg, how about an idiom like the following for processing short options:
> 
> 
>      } elsif (/-a(.*)$/) {
> -        $targetarch = $1;
> +        $targetarch = $1 || shift @ARGV;
>      }
> 
> perhaps using a ‘maybeshiftopt’ that does shift if the next element of
> ARGV does not begin with "-", or return ""?

Yes, I've a patch locally that fixes all dpkg-dev scripts to accept
spaces after short options, I'll be pushing it to master in the coming
days.

In any case, you'll need the apt patch anyway for backwards compat.

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130324004419.ga20...@gaara.hadrons.org

Reply via email to