[arch-general] Makepkg Traps non Zero Exit Codes
Lukáš Jirkovský
l.jirkovsky at gmail.com
Sat Feb 4 07:54:11 EST 2012
On 4 February 2012 12:54, Bastien Dejean <nihilhill at gmail.com> wrote:
> Hi,
>
> There's a problem with all the mercurial based PKGBUILD, the following
> command:
>
> hg pull
>
> Returns with a non zero exit code if there's nothing to pull.
> In that case, makepkg fails with since it traps all non zero exit codes.
>
> I've found traces of this mercurial behavior dating from 2006, hence I
> presume that makepkg must have become picky lately?
>
> Greetings,
> --
> b.d
> (| |)
> ^ ^
You can use "|| true" in such cases. Eg.
hg pull || true
More information about the arch-general
mailing list