Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems after writing ebuild file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pof
n00b
n00b


Joined: 23 Apr 2002
Posts: 13

PostPosted: Tue Apr 23, 2002 4:19 pm    Post subject: Problems after writing ebuild file Reply with quote

I've writen my first ebuild file and I want to test if it works.
I created /usr/portage/app-misc/progname/ and then I copied my progname-version.ebuild into that dir.
When I try 'ebuild progname-version.ebuild fetch' I get the folowing error:
Code:

Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 33, in ?
    a=portage.doebuild(pargs[0],x,getroot(),debug=debug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 985, in doebuild
    if not fetch(fetchme):
  File "/usr/lib/python2.2/site-packages/portage.py", line 715, in fetch
    mydigests[myline[2]]={"md5":myline[1],"size":string.atol(myline[3])}
IndexError: list index out of range

If I try 'emerge progname' I get this:
Code:

Calculating dependencies ...done!
>>> emerge app-misc/progname-version to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1316, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 592, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 985, in doebuild
    if not fetch(fetchme):
  File "/usr/lib/python2.2/site-packages/portage.py", line 715, in fetch
    mydigests[myline[2]]={"md5":myline[1],"size":string.atol(myline[3])}
IndexError: list index out of range

Anyone knows what I am missing here? I think my ebuild syntax is correct.
Thanks in advance.

pof
Back to top
View user's profile Send private message
pof
n00b
n00b


Joined: 23 Apr 2002
Posts: 13

PostPosted: Tue Apr 23, 2002 5:27 pm    Post subject: Problem solved Reply with quote

It was the digest file that was corrupted. Removed it, created it again with 'ebuild progname-version.ebuild digest' and then it worked perfectly :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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