X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id D4332DC0200 for ; Fri, 7 Aug 2015 08:25:04 +0000 (UTC) Received: from yavin4.bsod.eu (yavin4.bsod.eu [188.164.131.106]) by mail.alpinelinux.org (Postfix) with ESMTP id 93408DC016F for ; Fri, 7 Aug 2015 08:25:04 +0000 (UTC) Received: from yavin4.bsod.eu (hoth.bsod.eu [127.0.0.1]) by yavin4.bsod.eu (Postfix) with ESMTP id C7DA510C0ADD; Fri, 7 Aug 2015 08:25:03 +0000 (UTC) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 07 Aug 2015 10:25:03 +0200 From: Francesco Colista To: Christian Kampka Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH 1/2] testing/glock: new aport In-Reply-To: <1438899666-12217-1-git-send-email-christian@kampka.net> References: <1438899666-12217-1-git-send-email-christian@kampka.net> Message-ID: X-Sender: fcolista@alpinelinux.org User-Agent: Roundcube Webmail/1.1.2 X-Virus-Scanned: ClamAV using ClamSMTP Il 2015-08-07 00:21 Christian Kampka ha scritto: > https://github.com/robfig/glock > > Glock is a command-line tool to lock dependencies to specific > revisions, > using a version control hook to keep those revisions in sync across a > team. > --- > +snapshot() { > + local _date=$(date +%Y%m%d) > + local _ver=0.0.$_date > + local _pkg=$pkgname-$_ver.tar.gz > + > + abuild clean > + abuild deps > + abuild fetch > + > + mkdir -p "$srcdir" > + cd "$srcdir" > + msg "Creating snapshot: $_pkg" > + export GOPATH="${srcdir}/$pkgname" > + git clone -q ${_giturl} || return 1 > + cd $pkgname > + git checkout ${_commit} || return 1 > + go get -v -d || return 1 > + cd $srcdir > + tar zcf $pkgname-$pkgver.tar.gz $pkgname || return 1 > + rsync --progress -La $pkgname-${_ver}.tar.gz \ > + $_disturl || return 1 > + cd $startdir > + sed -i -e "s/^pkgver=.*/pkgver=$_ver/" APKBUILD || return 1 > + abuild checksum > + abuild undeps > +} > + Hi Christian. Rather than implementing a snapshot() function, you can use the buildin abuild snaphsot who proves to be reliable so far. Please note: http://wiki.alpinelinux.org/wiki/Include:Abuild This patch applies, but doesn't build because the .tar.gz upload on dev.alpinelinux.org fails. Thanks. -- :: Francesco Colista :: Alpine Linux Infrstraucture :: http://www.alpinelinux.org --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---