From 7388596ee7a55e05fbe584ab5b14ebc5e95bfd50 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 22 Mar 2021 21:46:41 -0400 Subject: [PATCH] Skip any inaccessible file:// source links This allows continuing to next source quicker and avoids outputting a lot of debug lines. --- src/macports1.0/macports.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl index ba9d42b480..055c7a58ce 100644 --- a/src/macports1.0/macports.tcl +++ b/src/macports1.0/macports.tcl @@ -2676,6 +2676,11 @@ proc mportsync {{optionslist {}}} { switch -regexp -- [macports::getprotocol $source] { {^file$} { set portdir [macports::getportdir $source] + if {![file exists ${portdir}]} { + ui_info "Could not access contents of $portdir" + incr numfailed + continue + } if {[_source_is_obsolete_svn_repo $portdir]} { set obsoletesvn 1 }