Bug 91086 - Don't fetch ${INDEXFILE}.bz2 if not neccessary + respect FETCH_ENV
Summary: Don't fetch ${INDEXFILE}.bz2 if not neccessary + respect FETCH_ENV
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Port Management Team
Depends on:
Reported: 2005-12-30 11:40 UTC by Alexander Leidinger
Modified: 2006-01-13 14:13 UTC (History)
0 users

See Also:

file.diff (883 bytes, patch)
2005-12-30 11:40 UTC, Alexander Leidinger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Leidinger freebsd_committer freebsd_triage 2005-12-30 11:40:02 UTC
The current implementation of fetchindex removes the bz2 file when it generates the INDEXFILE. This defeats the purpose of -m flag (mirror mode) for fetch.

The included implementation separates the fetch from the unpacking. The unpacking is done in a way which doesn't remove the bz2 file. This way multiple fetchindex runs without any change to the master INDEXFILE on the website doesn't result in downloads. This should reduce the traffic and the time needed for the user.

Additionally this also respects FETCH_ENV for the FETCHINDEX command.
Comment 1 Alexander Leidinger freebsd_committer freebsd_triage 2005-12-30 12:46:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Over to maintainer.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-01-12 04:17:07 UTC
State Changed
From-To: open->closed


Adding manually to audit trail:

Please see the combined patch in ports/89809 which attempts to fix
multiple problems in this area.