Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 369821

Summary: foo2zjs live ebuild downloads all tar files, multiple times
Product: Gentoo Linux Reporter: Gokdeniz Karadag <gokdenizk>
Component: [OLD] PrintingAssignee: Printing Team <printing>
Status: RESOLVED INVALID    
Severity: normal CC: phajdan.jr
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gokdeniz Karadag 2011-06-02 16:01:00 UTC
foo2zjs live ebuild lists the same files in URIS variable, this results in unnecessary download of these files multiple times.

Combined with the lack of FOO2ZJS_DEVICES use flag, download of the driver takes unnecesarrily long time.

The ebuild should filter the downloaded files by device, and it should download them only once.

Reproducible: Always
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-06-03 06:38:18 UTC
(In reply to comment #0)
> foo2zjs live ebuild lists the same files in URIS variable, this results in
> unnecessary download of these files multiple times.

I don't see any URIS reference in the live ebuild.

> Combined with the lack of FOO2ZJS_DEVICES use flag, download of the driver
> takes unnecesarrily long time.

That's correct, this is the live ebuild so we can't magically predict the list of devices, and it does change.

> The ebuild should filter the downloaded files by device, and it should download
> them only once.

Every time the live ebuild is emerged, we download everything from scratch. We can't do anything smarter because upstream changes tarballs in place. However, during one emerge no file is downloaded more than once.
Comment 2 Gokdeniz Karadag 2011-06-03 12:27:26 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > foo2zjs live ebuild lists the same files in URIS variable, this results in
> > unnecessary download of these files multiple times.
> 
> I don't see any URIS reference in the live ebuild.

Sorry, I must have mistakenly looked at non-live ebuild.

> 
> Every time the live ebuild is emerged, we download everything from scratch. We
> can't do anything smarter because upstream changes tarballs in place. However,
> during one emerge no file is downloaded more than once.

I see the following duplicate downloads, but the problem actually lies within the "getweb" script.

--2011-06-03 14:28:01--  http://foo2zjs.rkkda.com/firmware/sihpP1005.tar.gz

--2011-06-03 14:28:18--  http://foo2zjs.rkkda.com/firmware/sihpP1005.tar.gz

--2011-06-03 14:28:44--  http://foo2zjs.rkkda.com/icm/dl2300.tar.gz

--2011-06-03 14:29:43--  http://foo2zjs.rkkda.com/icm/dl2300.tar.gz

--2011-06-03 14:31:41--  http://foo2hp.rkkda.com/icm/hpclj2600n.tar.gz

--2011-06-03 14:32:13--  http://foo2hp.rkkda.com/icm/hpclj2600n.tar.gz
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-06-03 12:37:55 UTC
(In reply to comment #2)
> I see the following duplicate downloads, but the problem actually lies within
> the "getweb" script.
> 
> --2011-06-03 14:28:01--  http://foo2zjs.rkkda.com/firmware/sihpP1005.tar.gz
> 
> --2011-06-03 14:28:18--  http://foo2zjs.rkkda.com/firmware/sihpP1005.tar.gz
> 
> --2011-06-03 14:28:44--  http://foo2zjs.rkkda.com/icm/dl2300.tar.gz
> 
> --2011-06-03 14:29:43--  http://foo2zjs.rkkda.com/icm/dl2300.tar.gz
> 
> --2011-06-03 14:31:41--  http://foo2hp.rkkda.com/icm/hpclj2600n.tar.gz
> 
> --2011-06-03 14:32:13--  http://foo2hp.rkkda.com/icm/hpclj2600n.tar.gz

Ah, I see. Indeed, that's not very effective. Please report that upstream (if that doesn't work, please let me know).