1 |
On Wed, 17 Dec 2014 10:52:44 +0100, meino.cramer@×××.de wrote: |
2 |
|
3 |
> > > Yes, thats it: First download all stuff THEN start compiling. |
4 |
> > |
5 |
> > Why? The downloads will happen at the same rate but you'll have a head |
6 |
> > start on the compiling. The only disadvantage i can see is that you |
7 |
> > will not have a notification of when the download finishes, but you |
8 |
> > could work around that by having another script check |
9 |
> > emerge-fetch.log and send a shutdown to the PC when there is no |
10 |
> > further output. |
11 |
> > > |
12 |
> > > Would --jobs=0 help here? This would say "No packages are build |
13 |
> > > simultanously"...I check that! |
14 |
> > |
15 |
> > No. --jobs controls package building, nothing to do with downloading. |
16 |
> > parallel-fetch in the closest to what you want as it grabs all the |
17 |
> > downloads as soon as possible. |
18 |
|
19 |
> how can I (or the script) distinguish between an internet |
20 |
> connection, which is heavily slowed down (no data), blocked or an |
21 |
> currently not responding server and the end of all needed downloads? |
22 |
|
23 |
pgrep wget will tell you if a download is still in progress. It seems |
24 |
reasonable to assume that if there is no further output to the log and |
25 |
wget is no longer running, portage is no longer downloading files. |
26 |
|
27 |
Or you could get clever and set FETCH_COMMAND to a script that fetches the file and |
28 |
then notifies of completion. |
29 |
|
30 |
> How can the script check for "the last needed file has been downloaded |
31 |
> successfully" ? |
32 |
|
33 |
It can't, any more than portage does. Whether the download phases exists |
34 |
successfully or unsuccessfully your Internet connection is no longer |
35 |
being used, so you may as well shut down the PC. |
36 |
|
37 |
You are trying to use portage in a way that was not intended. That |
38 |
involves compromises, some work or both. |
39 |
|
40 |
Another alternative would be to use a USB to ethernet adaptor on the |
41 |
embedded board and connect it directory to your router. |
42 |
|
43 |
|
44 |
-- |
45 |
Neil Bothwick |
46 |
|
47 |
The word 'Windows' is a word out of an old dialect of the Apaches. |
48 |
It means: 'White man staring through glass-screen onto an hourglass...') |