From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9B85E1389E2 for ; Wed, 17 Dec 2014 12:13:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D3D8E0931; Wed, 17 Dec 2014 12:13:10 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 84A16E08F2 for ; Wed, 17 Dec 2014 12:13:09 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.8]) by mail.digimed.co.uk (Postfix) with ESMTPA id BC3BF28DCD for ; Wed, 17 Dec 2014 12:13:08 +0000 (GMT) Date: Wed, 17 Dec 2014 12:13:03 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] question/feature request: First fetch, then compile... Message-ID: <20141217121303.7fdce493@digimed.co.uk> In-Reply-To: <20141217095244.GE4439@solfire> References: <20141217054855.GA4439@solfire> <54912066.3000506@gmail.com> <20141217062724.GB4439@solfire> <5491246A.4080300@gmail.com> <5491258F.2080406@gmail.com> <20141217065353.GC4439@solfire> <20141217093628.4762f5a2@digimed.co.uk> <20141217095244.GE4439@solfire> Organization: Digital Media Production X-Mailer: Claws Mail 3.11.1-42-g656c17 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/OrNd5K8Zz0CffBkzcEeq/Sc"; protocol="application/pgp-signature" X-Archives-Salt: 7358d8dc-fe0b-4158-926a-92484dca82d9 X-Archives-Hash: 19cc489ae48dd35d5f533703bed0ae07 --Sig_/OrNd5K8Zz0CffBkzcEeq/Sc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 17 Dec 2014 10:52:44 +0100, meino.cramer@gmx.de wrote: > > > Yes, thats it: First download all stuff THEN start compiling. =20 > >=20 > > Why? The downloads will happen at the same rate but you'll have a head > > start on the compiling. The only disadvantage i can see is that you > > will not have a notification of when the download finishes, but you > > could work around that by having another script check > > emerge-fetch.log and send a shutdown to the PC when there is no > > further output. =20 > > >=20 > > > Would --jobs=3D0 help here? This would say "No packages are build > > > simultanously"...I check that! =20 > >=20 > > No. --jobs controls package building, nothing to do with downloading. > > parallel-fetch in the closest to what you want as it grabs all the > > downloads as soon as possible. > how can I (or the script) distinguish between an internet > connection, which is heavily slowed down (no data), blocked or an > currently not responding server and the end of all needed downloads? pgrep wget will tell you if a download is still in progress. It seems reasonable to assume that if there is no further output to the log and wget is no longer running, portage is no longer downloading files. Or you could get clever and set FETCH_COMMAND to a script that fetches the = file and then notifies of completion. > How can the script check for "the last needed file has been downloaded > successfully" ? It can't, any more than portage does. Whether the download phases exists successfully or unsuccessfully your Internet connection is no longer being used, so you may as well shut down the PC. You are trying to use portage in a way that was not intended. That involves compromises, some work or both. Another alternative would be to use a USB to ethernet adaptor on the embedded board and connect it directory to your router. --=20 Neil Bothwick The word 'Windows' is a word out of an old dialect of the Apaches. It means: 'White man staring through glass-screen onto an hourglass...') --Sig_/OrNd5K8Zz0CffBkzcEeq/Sc Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlSRc1QACgkQum4al0N1GQOHbACggsyJigy13JHs7kq/l0vS7yjY tOQAoMj+1auaTxwc045Z/F9b9WuDidYY =oHyM -----END PGP SIGNATURE----- --Sig_/OrNd5K8Zz0CffBkzcEeq/Sc--