Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TOOL] efetch
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Tue Sep 14, 2004 11:18 am    Post subject: [TOOL] efetch Reply with quote

Ho buttato giu' uno scriptino per adattare il comando da usare per scaricare i pacchetti in base alla loro dimensione.

Dato che wget e' abbastanza lento, che prozilla apre n connessioni
con lo stesso sito ed e' ottimo per pacchetti di piccole dimensioni e che
axel e' il piu' veloce ma ricercando i mirror ad ogni download di pacchetto
e' lento a partire e quindi adatto a pacchetti di grosse dimensioni, ho pensato
di far scegliere allo script il downloader piu' adatto al pacchetto.
(Non conosco lukemftp :? )

Per ora e' molto rozzo, esegue solo un emerge -u, ed e' veramente solo
in fase embrionale. Mi sono scontrato con diversi ostacoli, e sicuramente ci sono vie piu' brevi per farlo (magari con la bash 8O ), ma se l'idea piace, ci posso lavorare su.

Potete scaricare la versione primordiale su http://www.gentoo.it/utility/efetch.py

Aspetto bastonate e tacchi a spillo nella pupilla :wink:

Ciauz
morellik
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Tue Sep 14, 2004 11:20 am    Post subject: Reply with quote

Per intanto lo aggiungo ai post utilissimi
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
masterbrian
Guru
Guru


Joined: 13 Feb 2004
Posts: 461

PostPosted: Tue Sep 14, 2004 11:25 am    Post subject: Reply with quote

Mi sembra un ottima idea :) Mi offro come tester ;)
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Sep 14, 2004 12:45 pm    Post subject: Reply with quote

l'idea mi sembra ottima...

io farei un Du world pero'.

come al solito faccio il rompiballe.
(scusami non lo faccio apposta :) )
Code:

root@lyra xchris # ./efetch.py
* Checking for fetch commands:
        wget    -->  Found
        prozilla        -->  Found
        axel    -->  Found
        lukemftp        -->  Not Found
* Downloading info from http://ftp.easynet.nl/mirror/gentoo/
* Downloading info from http://ftp.snt.utwente.nl/pub/os/linux/gentoo
* Extraction data../
* Database creation..\Traceback (most recent call last):
  File "./efetch.py", line 437, in ?
    main()
  File "./efetch.py", line 313, in main
    d[t[i][0][0]]=t[i][0][1].split()[3]
IndexError: list index out of range


ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Tue Sep 14, 2004 1:18 pm    Post subject: Reply with quote

xchris wrote:
l'idea mi sembra ottima...

io farei un Du world pero'.



Grazie..

In effetti questo e' solo un embrione di quello che potrebbe diventare aggiungendo le varie opzioni.

Quote:

come al solito faccio il rompiballe.
(scusami non lo faccio apposta :) )


Come si dice: "You are welcome" :D

Quote:

Code:

root@lyra xchris # ./efetch.py
* Checking for fetch commands:
        wget    -->  Found
        prozilla        -->  Found
        axel    -->  Found
        lukemftp        -->  Not Found
* Downloading info from http://ftp.easynet.nl/mirror/gentoo/
* Downloading info from http://ftp.snt.utwente.nl/pub/os/linux/gentoo
* Extraction data../
* Database creation..\Traceback (most recent call last):
  File "./efetch.py", line 437, in ?
    main()
  File "./efetch.py", line 313, in main
    d[t[i][0][0]]=t[i][0][1].split()[3]
IndexError: list index out of range


ciao


Questo non l'ho capito. Ho fatto varie prove ma in nessuna esce durante
questa fase a meno che il contenuto dei vari distfiles non differiscano
nel numero dei campi. 8O
Faro' altri test.

CIauz
morellik
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Sep 14, 2004 9:00 pm    Post subject: Reply with quote

effettivamente l'ho rilanciato e non ha dato problemi...
errori non riproducibili...una rogna :S
happy debug :)
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Wed Sep 15, 2004 7:39 am    Post subject: Reply with quote

xchris wrote:
effettivamente l'ho rilanciato e non ha dato problemi...
errori non riproducibili...una rogna :S
happy debug :)


Ho scoperto l'arcano :D E' solo un problema della pagina html che
visualizza la lista dei file. Sono andato nel sito che dava l'errore,
la pagina con la lista dei file e' autogenerata e contiene molto piu' codice html
di quello degli altri siti.

Ciauz
morellik
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Sep 15, 2004 8:43 am    Post subject: Reply with quote

Ragazzi, siete splendidi! State sfornando tool su tool a velocità notevole, tra l'altro uno più bello e utile dell'altro :D

Siete quasi contagiosi, vien voglia di scrivere un proprio tool per contribuire (se solo sapessi quale, avete codato tutto voi :mrgreen:)! omplienti ancora.
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Wed Sep 15, 2004 9:28 am    Post subject: Reply with quote

shev wrote:
Ragazzi, siete splendidi! State sfornando tool su tool a velocità notevole, tra l'altro uno più bello e utile dell'altro :D

Siete quasi contagiosi, vien voglia di scrivere un proprio tool per contribuire (se solo sapessi quale, avete codato tutto voi :mrgreen:)! omplienti ancora.


:oops: :oops: :oops:
Troppo gentile. Ma alla fine sono tutti i frequentatori del forum che incendiano la fiammella che ti porta a mettere per iscritto quello che pensano o che propongono. E' una grande comunita' :D

Ciauz
morellik
Back to top
View user's profile Send private message
egolf
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2004
Posts: 116
Location: CH

PostPosted: Fri Oct 01, 2004 10:30 pm    Post subject: Reply with quote

stai ancora sviluppando il tool?
pensavo che fosse interessante avere uno script che fa quello che fa il tuo da mettere in make.conf come FETCHCOMMAND.
è solo un' idea. :)
_________________
Everything has its beauty but not everyone sees it.
-Confucius-
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Wed Aug 03, 2005 3:04 am    Post subject: Reply with quote

egolf wrote:
stai ancora sviluppando il tool?
pensavo che fosse interessante avere uno script che fa quello che fa il tuo da mettere in make.conf come FETCHCOMMAND.
è ³olo un' idea. :)


sorry to interrupt you guys, but I searched a lot and found trivil info regarding using axel's multi-thread download capability while using emerge, here it seems you might have some relevant info,

such as how to modify /etc/make.conf (by adding FETCHCOMMAND, and......not sure), after I emerge axel.


any advices are greatly appreciated.

thx man.
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Wed Aug 03, 2005 3:45 am    Post subject: Reply with quote

Never mind man:

I got it working by adding the following to make.conf

FETCHCOMMAND="/usr/bin/axel -a -S10 \${URI} -o \${DISTDIR}"
RESUMECOMMAND="/usr/bin/axel -a -S10 \${URI} -o \${DISTDIR}"

thx anyways
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Wed Aug 03, 2005 3:56 am    Post subject: Reply with quote

dundas wrote:
Never mind man:

I got it working by adding the following to make.conf

FETCHCOMMAND="/usr/bin/axel -a -S10 \${URI} -o \${DISTDIR}"
RESUMECOMMAND="/usr/bin/axel -a -S10 \${URI} -o \${DISTDIR}"

thx anyways


I have to try it :)
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Wed Aug 03, 2005 4:04 am    Post subject: Reply with quote

good for you, just a reminder that u might want to delete the "-S10"
from it since it will search for mirror which costs u a lot of extra time, and is not necessary for multi-threading.

cheers
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum