Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369821 - foo2zjs live ebuild downloads all tar files, multiple times
Summary: foo2zjs live ebuild downloads all tar files, multiple times
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 16:01 UTC by Gokdeniz Karadag
Modified: 2011-06-03 12:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).