#30593: When a local port indexfile is not found, any searches in the main repo fail ------------------------------+--------------------------------------------- Reporter: deorth@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: ------------------------------+--------------------------------------------- This may be a dupe ticket, apologies if it is but I couldn't see anything obvious in the trac search and I'm not very good at it. :) If for some reason a portindex is missing from my local repo, I get this behaviour : {{{ $ sudo port install mtr Warning: port definitions are more than two weeks old, consider using selfupdate Warning: Can't open index file for source: file:///Users/ahorn/mydev/ahorn/macports Error: Port mtr not found $ port search mtr Warning: port definitions are more than two weeks old, consider using selfupdate mtr @0.80 (net) 'traceroute' and 'ping' in a single tool }}} So, found in a search operation but not an install operation. Presumably because error status from the attempt to open the index file is dictating whether or not ports thinks it can find/install mtr. Possibly bailing at the first portindex failure ? not sure. Anyway, rebuilding that portindex file and it then works as expected. {{{ $ cd ~ahorn/mydev/ahorn/macports $ portindex ... <snip> ... Total number of ports parsed: 18 etc... }}} Then : {{{ $ sudo port install mtr Warning: port definitions are more than two weeks old, consider using selfupdate ---> Fetching mtr ---> Attempting to fetch mtr-0.80.tar.gz from http://distfiles.macports.org/mtr ---> Verifying checksum(s) for mtr etc.. }}} -- Ticket URL: <https://trac.macports.org/ticket/30593> MacPorts <http://www.macports.org/> Ports system for Mac OS