Opened 3 years ago

Closed 3 years ago

#50874 closed defect (fixed)

python 1.0 portgroup should clear distfiles for main (stub) port

Reported by: ryandesign (Ryan Schmidt) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:


For example, py-htmldocs is a stub port -- it itself does not install anything (only its subports do) -- yet:

$ port distfiles py-htmldocs
--->  Distfiles for py-htmldocs
[py-htmldocs-1.0.tar.bz2] /opt/local/var/macports/distfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2

Note that the file "py-htmldocs-1.0.tar.bz2" does not exist anywhere. The subports of py-htmldocs set different distnames.

The consequence of this is that anyone trying to fetch distfiles for all ports -- such as our distfiles mirror -- repeatedly request nonexistent files from web servers -- both from our distfiles mirror itself as well as other listed upstream servers and MacPorts mirrors. This wastes bandwidth and time.

The python portgroup should clear the distfiles variable for the stub port. The php 1.1 portgroup does this and can be used as an example.

Change History (1)

comment:1 Changed 3 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.