Date: Sun, 30 Jan 2011 11:49:24 +0100 (CET) From: Ulrich Spoerlein <uqs@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/154390: Make fetching output copy/paste friendly Message-ID: <201101301049.p0UAnOVi043484@elmar.spoerlein.net> Resent-Message-ID: <201101301050.p0UAo8BV096101@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154390 >Category: ports >Synopsis: Make fetching output copy/paste friendly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 30 10:50:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ulrich Spörlein >Release: FreeBSD 8.2-PRERELEASE amd64 >Organization: >Environment: >Description: The current output when trying to fetch a port, makes it extra hard to construct the URL in case fetch(1) isn't able to download the file and you'd like to try wget or the browser instead. You currently need to carefully select the URL (without trailing dot), copy to browser, then copy the name of the file. >How-To-Repeat: => feh-1.11.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://www.chaosdorf.de/~derf/feh/. feh-1.11.1.tar.bz2 100% of 2234 kB 1471 kBps >Fix: - Print the damn URL in one piece, no trailing period. - Copy & Paste - ??? - PROFIT! --- ports-fetch.diff begins here --- Index: bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.666 diff -u -p -r1.666 bsd.port.mk --- bsd.port.mk 29 Dec 2010 07:14:56 -0000 1.666 +++ bsd.port.mk 30 Jan 2011 10:45:55 -0000 @@ -3571,7 +3571,7 @@ do-fetch: SORTED_MASTER_SITES_CMD_TMP="${SORTED_MASTER_SITES_DEFAULT_CMD}" ; \ fi; \ for site in `eval $$SORTED_MASTER_SITES_CMD_TMP ${_RANDOMIZE_SITES}`; do \ - ${ECHO_MSG} "=> Attempting to fetch from $${site}."; \ + ${ECHO_MSG} "=> Attempting to fetch $${site}/$${file}"; \ CKSIZE=`alg=SIZE; ${DISTINFO_DATA}`; \ case $${file} in \ */*) ${MKDIR} $${file%/*}; \ @@ -3623,7 +3623,7 @@ do-fetch: SORTED_PATCH_SITES_CMD_TMP="${SORTED_PATCH_SITES_DEFAULT_CMD}" ; \ fi; \ for site in `eval $$SORTED_PATCH_SITES_CMD_TMP`; do \ - ${ECHO_MSG} "=> Attempting to fetch from $${site}."; \ + ${ECHO_MSG} "=> Attempting to fetch $${site}/$${file}"; \ CKSIZE=`alg=SIZE; ${DISTINFO_DATA}`; \ case $${file} in \ */*) ${MKDIR} $${file%/*}; \ --- ports-fetch.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101301049.p0UAnOVi043484>