Subject: Re: CVS commit: pkgsrc/devel/psvn
To: Takahiro Kambe <taca@back-street.net>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-changes
Date: 06/12/2007 21:17:31
On Tue, 12 Jun 2007 18:39:16 +0900, Takahiro Kambe <taca@back-street.net=
>  =

wrote:

> In message <20070612091441.GB4374@britannica.bec.de>
> 	on Tue, 12 Jun 2007 11:14:41 +0200,
> 	Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
>> I get checksum errors.
> Do you have any good idea to fetch specific revision from SVN?  As lik=
e:
>
> 	http://svn.collab.net/viewvc/*checkout*/svn/trunk/contrib/client-side=
/emacs/psvn.el?revision=3D25168
>

How about following patch?
Then define "FETCH_QUERYSTR=3Drevision=3D25168".
Not only fetching from subversion but also from some Wiki need this tric=
k  =

(e.g. comms/libopensync).

Index: fetch
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mk/fetch/fetch,v
retrieving revision 1.8
diff -u -r1.8 fetch
--- fetch       18 Jan 2007 10:51:48 -0000      1.8
+++ fetch       12 Jun 2007 12:10:53 -0000
@@ -125,6 +125,7 @@
  checksum=3D
  distinfo=3D
  fetchdir=3D.                     # A relative directory or "."
+querystr=3D
  resume=3D
  verbose=3D
  while ${TEST} $# -gt 0; do
@@ -132,6 +133,7 @@
         -c)     checksum=3Dyes; shift ;;
         -d)     fetchdir=3D"$2"; shift 2 ;;
         -f)     distinfo=3D"$2"; shift 2 ;;
+       -q)     querystr=3D"$2"; shift 2 ;;
         -r)     resume=3Dyes; shift ;;
         -v)     verbose=3Dyes; shift ;;
         --)     shift; break ;;
@@ -261,6 +263,8 @@
         ( cd $fetchdir
           if ${TEST} -n "$resume"; then
                 fetch_cmd=3D"${FETCH_CMD} ${FETCH_BEFORE_ARGS}  =

${FETCH_RESUME_ARGS} ${FETCH_OUTPUT_ARGS} $outputfile $site$file"
+         elif ${TEST} -n "$querystr"; then
+               fetch_cmd=3D"${FETCH_CMD} ${FETCH_BEFORE_ARGS}  =

${FETCH_OUTPUT_ARGS} $file $site$file?$querystr ${FETCH_AFTER_ARGS}"
           else
                 fetch_cmd=3D"${FETCH_CMD} ${FETCH_BEFORE_ARGS} $site$fi=
le  =

${FETCH_AFTER_ARGS}"
           fi
Index: fetch.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mk/fetch/fetch.mk,v
retrieving revision 1.25
diff -u -r1.25 fetch.mk
--- fetch.mk    12 Jun 2007 09:54:52 -0000      1.25
+++ fetch.mk    12 Jun 2007 12:10:53 -0000
@@ -243,6 +243,9 @@
  .if exists(${DISTINFO_FILE})
  _FETCH_ARGS+=3D  -f ${DISTINFO_FILE:Q}
  .endif
+.if defined(FETCH_QUERYSTR) && !empty(FETCH_QUERYSTR)
+_FETCH_ARGS+=3D  -q ${FETCH_QUERYSTR:Q}
+.endif
  .if !empty(PKG_RESUME_TRANSFERS:M[yY][eE][sS])
  _FETCH_ARGS+=3D  -r
  .endif


-- =

"Of course I love NetBSD":-)
OBATA Akio / obache@NetBSD.org