public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuilds and download CGIs
@ 2002-05-24  9:31 Ryan Shaw
  0 siblings, 0 replies; only message in thread
From: Ryan Shaw @ 2002-05-24  9:31 UTC (permalink / raw
  To: gentoo-dev

hi,

i have run into a problem with an ebuild i am
creating. the SRC_URI is of the form 

http://www.foo.org/download.cgi?location=libfoo-1.0.tar.gz

portage fetches the tarball okay, but the
digest generation fails due to (i believe)
a bug in portage.

the offending code in portage.py (line 1050):

	#uri processing list
	upl=[[newuris,alist],[alluris,aalist]]
	for myl in upl:
		for x in myl[0]:
			mya=os.path.basename(x)
			if not mya in myl[1]:
				myl[1].append(mya)

i'm glad we're saving valuable disk space by
using obfuscated variable names in portage,
but anyway...

os.path.basename() returns "download.cgi?location=libfoo-1.0.tar.gz"
as the name of the archive. but of course this
is not the correct filename so the checksum fails:

  File "/usr/lib/python2.2/site-packages/portage.py", line 69, in perform_checksum
    return fchksum.fmd5t(filename)
IOError: [Errno 2] No such file or directory: 
'/usr/portage/distfiles/download.cgi?location=libfoo-1.0.tar.gz'

is this a bug in portage or is there some way 
around this i don't know of yet?

rbs


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-24  9:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24  9:31 [gentoo-dev] ebuilds and download CGIs Ryan Shaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox