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:
Port:

Description

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
  http://www.python.org/ftp/python/doc/py-htmldocs-1.0.tar.bz2
  http://distfiles.macports.org/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://cjj.kr.distfiles.macports.org/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://jnb.za.distfiles.macports.org/distfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://jog.id.distfiles.macports.org/macports/mpdistfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://lil.fr.distfiles.macports.org/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://nou.nc.distfiles.macports.org/pub/macports/distfiles.macports.org/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://nue.de.distfiles.macports.org/macports/distfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://osl.no.distfiles.macports.org/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://sea.us.distfiles.macports.org/macports/distfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/py-htmldocs/py-htmldocs-1.0.tar.bz2
  http://svn.macports.org/repository/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.