[Buildroot] [PATCH 1/1] package: make package download from Mercurial repositories more robust

Thomas De Schampheleire patrickdepinguin at gmail.com
Wed Dec 11 18:12:01 UTC 2013


On Tue, Dec 10, 2013 at 9:10 PM, Thomas De Schampheleire
<patrickdepinguin at gmail.com> wrote:
> On Tue, Dec 10, 2013 at 7:31 PM, Mathias De Maré
> <mathias.demare at gmail.com> wrote:
>> Previously, when cloning a Mercurial repository,
>> aborting the clone could (in some cases) leave behind an empty directory.
>> As a result, a later clone would fail.
>>
>> Signed-off-by: Mathias De Maré <mathias.demare at gmail.com>
>> ---
>>  package/pkg-download.mk | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/package/pkg-download.mk b/package/pkg-download.mk
>> index 758b211..c00689b 100644
>> --- a/package/pkg-download.mk
>> +++ b/package/pkg-download.mk
>> @@ -178,6 +178,7 @@ endef
>>  define DOWNLOAD_HG
>>         test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
>>         (pushd $(DL_DIR) > /dev/null && \
>> +       rm -rf $($(PKG)_BASE_NAME) && \
>>         $(HG) clone --noupdate --rev $($(PKG)_DL_VERSION) $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
>>         $(HG) archive --repository $($(PKG)_BASE_NAME) --type tgz --prefix $($(PKG)_BASE_NAME)/ \
>>                       --rev $($(PKG)_DL_VERSION) $(DL_DIR)/$($(PKG)_SOURCE) && \
>
> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>

It seems that patchwork did not pick up this ack, nor the reply
itself... Is this a known issue?



More information about the buildroot mailing list