From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewwa5-0003fi-9e for guix-patches@gnu.org; Fri, 16 Mar 2018 17:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewwa2-00082w-ND for guix-patches@gnu.org; Fri, 16 Mar 2018 17:08:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57677) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewwa2-00082f-Jz for guix-patches@gnu.org; Fri, 16 Mar 2018 17:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ewwa2-0002Hm-DD for guix-patches@gnu.org; Fri, 16 Mar 2018 17:08:02 -0400 Subject: [bug#30572] [PATCH 2/7] tests: Add tests for "guix pack". Resent-Message-ID: Date: Fri, 16 Mar 2018 22:07:32 +0100 From: Danny Milosavljevic Message-ID: <20180316220732.19c2375a@scratchpost.org> In-Reply-To: <20180315040915.5556-3-cmmarusich@gmail.com> References: <20180222102933.4978-1-cmmarusich@gmail.com> <20180315040915.5556-1-cmmarusich@gmail.com> <20180315040915.5556-3-cmmarusich@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/.ix.V3AENvfqyWWfBmcIv0q"; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Chris Marusich Cc: bug#30572 <30572@debbugs.gnu.org> --Sig_/.ix.V3AENvfqyWWfBmcIv0q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable > +is_available () { > + # Use the "type" shell builtin to see if the program is on PATH. > + type "$1" Maybe >/dev/null ? Then it would only complain if it needed to. > +else > + echo "skipping pack verification because chroot or unshare is unavai= lable" echo "warning: Skipping pack verification because chroot or unshare is unav= ailable" >&2 Otherwise LGTM! --Sig_/.ix.V3AENvfqyWWfBmcIv0q Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlqsMhQACgkQ5xo1VCww uqV/igf/R/I2tFIpIQkBf7HpfzCB04rdmkGJgmf1+HN32w2Qkf4nGLwQCV6z3i8s 9lMH9peNABjUf11iBdG7nmB4OrsNgCg9V5FamrApFYDgP36rAESalHzx/1r8kIai ATzuSRLIROuGaCkIdyxR+pRZKKaM/vBQ4JLOsWwybtLnIFu/w1ogxNbHm5FQXnR5 fGm/DFejrVM0Vmw8C5/Cfz9wGIBIPVN2j5oirsY6SbLc97vXHg+uRvKsrOwS+bHh mjmrigE2LPDQGMzO8EDHmUWJwwP3lOESJNpJBXYCsIcJ0pOHP7eorgR0/rEBM0BA Xm4qSwafbNRJzus5rBqwZ0wFRIqEfQ== =0fd4 -----END PGP SIGNATURE----- --Sig_/.ix.V3AENvfqyWWfBmcIv0q--