Re: [PATCH v2] scripts/package: snap-pkg target

From: Paolo Pisati
Date: Mon Nov 27 2017 - 06:01:51 EST


On Wed, Sep 20, 2017 at 11:28 AM, Masahiro Yamada
<yamada.masahiro@xxxxxxxxxxxxx> wrote:
>> @@ -0,0 +1,14 @@
>> +name: kernel
>> +version: KERNELRELEASE
>> +summary: Linux kernel
>> +description: The upstream Linux kernel
>> +grade: stable
>> +confinement: strict
>> +type: kernel
>> +
>> +parts:
>> + kernel:
>> + plugin: kernel
>> + source: SRCTREE
>> + source-type: git
>> + kconfigfile: SRCTREE/.config
>
>
> Other targets such as rpm-pkg and deb-pkg
> work without relying on git.
>
> However, snap-pkg every time does "git clone", so
> changes added to the source tree, but not committed yet,
> are not reflected to the package.
>
> Is it possible to work with a tarball,
> like other targets do?

Thanks for your feedback Yamada-san.

Yes, switching to a tarball is doable and i'll send a v3 with that change.
--
bye,
p.