[arch-general] Makepkg Traps non Zero Exit Codes

Tavian Barnes tavianator at tavianator.com
Sun Feb 5 21:20:51 EST 2012


On 4 February 2012 08:46, Stefan Husmann <stefan-husmann at t-online.de> wrote:
> Am 04.02.2012 13:29, schrieb Frederic Bezies:
>
>> On 04/02/2012 12:54, Bastien Dejean 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,
>>
>>
>> For now, downgrade to mercurial 2.0.2 using :
>> http://arm.konnichi.com/search/
>>
>> I reported a bug on bugzilla.mozilla.org bugtracker related to thunderbird
>> trunk source code grabbing.
>>
>> https://bugzilla.mozilla.org/show_bug.cgi?id=723638
>>
>> So, until a fix is found either in mercurial or the AUR package you're
>> using, downgrading is the only answer :(
>>
>
> Unfortunately this seems to be an intended change in mercurial. See
> http://selenic.com/hg/rev/093b75c7b44b
>
> So a "fix" for this won't come, I guess.
>
> Regards Stefan

Wow,

-    Returns 0 on success, 1 if an update had unresolved files.
+    Returns 0 on success, 1 if no changes found or an update had
+    unresolved files.

So not even a way to distinguish between failure and nothing to pull.
Well, I assume some other command could.

-- 
Tavian Barnes


More information about the arch-general mailing list