Re: Makepkg Traps non Zero Exit Codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 4 February 2012 12:54, Bastien Dejean <nihilhill@xxxxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux