1 |
es lo que aconseja hacer emerge, pero recibo este otro mensaje: |
2 |
|
3 |
Fetching most recent snapshot |
4 |
Attempting to fetch file dated: 20050712 |
5 |
--- No md5sum present on the mirror. (Not yet available.) |
6 |
Attempting to fetch file dated: 20050711 |
7 |
|
8 |
............ |
9 |
|
10 |
supongo que tendré que hacer un programa que vaya llamando al emerge |
11 |
--sync. Lo he intentado en C pero debo de haber oblidado: |
12 |
|
13 |
|
14 |
#include <stddef.h> |
15 |
#include <stdio.h> |
16 |
#include <stdlib.h> |
17 |
#include <unistd.h> |
18 |
#include <sys/types.h> |
19 |
#include <sys/wait.h> |
20 |
|
21 |
int main () |
22 |
{ |
23 |
int voltes = 0; |
24 |
int pid; |
25 |
int status; |
26 |
while (voltes < 300) //hace 300 iteraciones |
27 |
{ |
28 |
switch (pid = fork ()) //crea un processo hijo |
29 |
{ |
30 |
case 0: |
31 |
system ("emerge --sync"); |
32 |
exit (0); |
33 |
break; |
34 |
default: |
35 |
waitpid (pid, &status, 0); //espera a que termine el hijo |
36 |
antes de seguir |
37 |
voltes++; |
38 |
} |
39 |
} |
40 |
printf ("acabat"); |
41 |
return 0; |
42 |
} |
43 |
|
44 |
alguna ayuda con el portage o el código en C? muchas gracias |
45 |
|
46 |
Ab Umbra wrote: |
47 |
|
48 |
>Hola por que no intentas usando el # emerge-websync, el resultado es el mismo. |
49 |
>Slds |
50 |
> |
51 |
>Ab Umbra |
52 |
> |
53 |
> |
54 |
>On 7/11/05, Lluís Forns Puigmartí <boig@××.com> wrote: |
55 |
> |
56 |
> |
57 |
>>al intentar hacer un "emerge --sync", después de un rato se queda |
58 |
>>colgado y da el siguiente error: |
59 |
>> |
60 |
>>rsync error: timeout in data send/receive (code 30) at io.c(109) |
61 |
>>rsync: connection unexpectedly closed (2713966 bytes read so far) |
62 |
>>rsync error: error in rsync protocol data stream (code 12) at io.c(189) |
63 |
>> >>> retry ... |
64 |
>> |
65 |
>> |
66 |
>>parece claro que es un fallo de connexión, pero entonces hace un retry |
67 |
>>con otro servidor y sigue sin problemas. |
68 |
>>Tengo algunos problemas de dependencias ahora mismo, pero creo que |
69 |
>>deberia empezar por actualizar portage, alguna sugerencia? quizá hacer |
70 |
>>"emerge --sync" hasta que "cachito a cachito" actualize todo portage? |
71 |
>> |
72 |
>>muchas gracias |
73 |
>>-- |
74 |
>>gentoo-user-es@g.o mailing list |
75 |
>> |
76 |
>> |
77 |
>> |
78 |
>> |
79 |
> |
80 |
> |
81 |
> |
82 |
> |
83 |
|
84 |
-- |
85 |
gentoo-user-es@g.o mailing list |