docker-distribution: use archive instead of dl_hook

The  "dl_hook" combines the source codes

https://github.com/docker/distribution/archive/v2.7.1.tar.gz

and debian folder

https://salsa.debian.org/go-team/packages/golang-github-docker-distribution/-/archive/debian/2.7.1+ds2-7/golang-github-docker-distribution-debian-2.7.1+ds2-7.tar.bz2

The combination can be found at:

https://snapshot.debian.org/archive/debian/20210529T084123Z/pool/main/d/docker-registry/

docker-registry_2.7.1+ds2-7.dsc
docker-registry_2.7.1+ds2.orig.tar.xz
docker-registry_2.7.1+ds2-7.debian.tar.xz

so replace dl_hook with archive

Verification: successfully built the package

Story: 2009221
Task: 43631

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I26b04e325c4f2cd3b0ea42be7f42db193f977a19
This commit is contained in:
Yue Tao 2021-11-29 13:55:17 +08:00 committed by Jim Somerville
parent 0439fdc89a
commit 87f9b63a2f
2 changed files with 1 additions and 21 deletions

View File

@ -1,20 +0,0 @@
#!/bin/bash
set -x
#link to the debian folder structure
SUBMODULE_SRC1=https://salsa.debian.org/go-team/packages/golang-github-docker-distribution/-/archive/debian/2.7.1+ds2-7/golang-github-docker-distribution-debian-2.7.1+ds2-7.tar.bz2
#link to source files
SUBMODULE_SRC2=https://github.com/docker/distribution/archive/v2.7.1.tar.gz
PKG_BUILD_NAME=$1
mkdir ${PKG_BUILD_NAME}
pushd ${PKG_BUILD_NAME}
PKG=golang-github-docker-distribution-debian-2.7.1+ds2-7.tar.bz2
wget $SUBMODULE_SRC1 -O $PKG
tar --bzip2 -xvf $PKG --strip-components 1
PKG=v2.7.1.tar.gz
wget $SUBMODULE_SRC2 -O $PKG
tar -xvzf $PKG --strip-components 1

View File

@ -1,7 +1,7 @@
---
debname: docker-registry
debver: 2.7.1+ds2-7
dl_hook: dl_hook
archive: https://snapshot.debian.org/archive/debian/20210529T084123Z/pool/main/d/docker-registry
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true