ACK: [kteam-tools][PATCH] git-build-kernel: do not expect orig tarball for debian "native" packages
Khaled Elmously
khalid.elmously at canonical.com
Fri Aug 10 17:37:40 UTC 2018
On 2018-08-07 12:22:23 , Kamal Mostafa wrote:
> Determine whether or not to expect an orig tarball based on the file
> debian/source/format, as follows:
>
> - if the file does not exist: NO orig tarball
> - if the file contains "native" e.g. "3.0 (native)": NO orig tarball
> - otherwise: YES orig tarball
>
> This eliminates the need for name-based special cases for -meta and -signed
> and allows for the construction of main kernel source packages when an
> orig tarball has not (yet) been published.
>
> Signed-off-by: Kamal Mostafa <kamal at canonical.com>
> ---
> git-build-kernel/git-build-kernel | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
> index ad6c3c5..831c0af 100755
> --- a/git-build-kernel/git-build-kernel
> +++ b/git-build-kernel/git-build-kernel
> @@ -142,11 +142,10 @@ touch "$WORKDIR/building"
> trap "rm -rf $WORKDIR/building $BUILDDIR" 0
>
> [ $do_source_pkg = 1 ] && {
> - ### Special case for linux-signed and linux-meta packages, which
> - ### have no .orig tarball
> - [ ${SRCPKG/-signed} != $SRCPKG ] && no_orig_tarball=1
> - [ ${SRCPKG/-meta} != $SRCPKG ] && no_orig_tarball=1
> - if [ "$no_orig_tarball" = 1 ]
> + deb_format="$(git show $GITBRANCH:debian/source/format 2>/dev/null)"
> + [ -z "$deb_format" ] && no_orig_tarball=1
> + [ "${deb_format/native/}" != "$deb_format" ] && no_orig_tarball=1
> + if [ "$no_orig_tarball" == 1 ]
> then
> srcpkg_debopts="--no-tgz-check $srcpkg_debopts"
> else
Acked-by: Khalid Elmously <khalid.elmously at canonical.com>
More information about the kernel-team
mailing list