Date: Wed, 5 Dec 2012 20:25:45 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r243905 - projects/portbuild/scripts Message-ID: <201212052025.qB5KPkvP030047@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer) Date: Wed Dec 5 20:25:45 2012 New Revision: 243905 URL: http://svnweb.freebsd.org/changeset/base/243905 Log: Make this a little more error-resistant, mostly for new installs. Modified: projects/portbuild/scripts/dopackagestats Modified: projects/portbuild/scripts/dopackagestats ============================================================================== --- projects/portbuild/scripts/dopackagestats Wed Dec 5 20:21:33 2012 (r243904) +++ projects/portbuild/scripts/dopackagestats Wed Dec 5 20:25:45 2012 (r243905) @@ -337,8 +337,8 @@ write_header # (i.e. where build = branch, e.g. "7", "10") for arch in ${SUPPORTED_ARCHS}; do - cd ${pbd}/${arch} - builds=`ls | \ + builds=`cd ${pbd}/${arch} 2> /dev/null && \ + ls 2> /dev/null | \ grep "${SRC_BRANCHES_PATTERN}$" | \ sort -n` if [ ! -z "$builds" ]; then @@ -357,8 +357,8 @@ done # examples: 8.1; 8-exp; 8-exp-gettext; 8.1R for arch in ${SUPPORTED_ARCHS}; do - cd ${pbd}/${arch} - branches=`ls | \ + branches=`cd ${pbd}/${arch} 2> /dev/null && \ + ls 2> /dev/null | \ grep "${SRC_BRANCHES_PATTERN}[-\.]" | \ sed -e "s@[-\.].*@@" | \ uniq | \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212052025.qB5KPkvP030047>