diff options
author | brooks <brooks@FreeBSD.org> | 2011-06-01 05:24:40 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2011-06-01 05:24:40 +0800 |
commit | 109bd4f97628f9a343023629d11598e80bda1c19 (patch) | |
tree | 8709c335e42260013adc768179a02e018a1cb8c4 /www | |
parent | b8dd3e6fa038a160f1d43e4b2758f91a3dbd7fb4 (diff) | |
download | freebsd-ports-gnome-109bd4f97628f9a343023629d11598e80bda1c19.tar.gz freebsd-ports-gnome-109bd4f97628f9a343023629d11598e80bda1c19.tar.zst freebsd-ports-gnome-109bd4f97628f9a343023629d11598e80bda1c19.zip |
Upgrade to the latest SVN revsion which fixes a number of bugs.
Also patch a bug in the command line interface which prevented
"trac-admin <env> download add <file>" from working. I'm pretty sure it
hadn't worked in several years.
Diffstat (limited to 'www')
-rw-r--r-- | www/trac-downloads/Makefile | 5 | ||||
-rw-r--r-- | www/trac-downloads/distinfo | 4 | ||||
-rw-r--r-- | www/trac-downloads/files/patch-tracdownloads_consoleadmin.py | 15 |
3 files changed, 20 insertions, 4 deletions
diff --git a/www/trac-downloads/Makefile b/www/trac-downloads/Makefile index 25c8f4e72030..a3dd1e7a30d5 100644 --- a/www/trac-downloads/Makefile +++ b/www/trac-downloads/Makefile @@ -6,7 +6,7 @@ # PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;:L} -PORTVERSION= ${TRAC_VERSION}.${PLUGIN_VERSION} +PORTVERSION= ${TRAC_VERSION}.${PLUGIN_VERSION}.${SVN_REV} CATEGORIES= www devel python MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks @@ -22,6 +22,7 @@ BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools TRAC_VERSION= 0.12 PLUGIN_VERSION= 0.3 +SVN_REV= 10047 USE_PYTHON= yes NO_BUILD= yes @@ -34,7 +35,7 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PLUGIN_VERSION}-py${ .if defined(BOOTSTRAP) do-fetch: ${MKDIR} ${WRKDIR} - svn export http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC} + svn export -r ${SVN_REV} http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC} ${MKDIR} ${_DISTDIR} cd ${WRKDIR} && \ tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME} diff --git a/www/trac-downloads/distinfo b/www/trac-downloads/distinfo index 0265908ddef8..93a6b4fb4166 100644 --- a/www/trac-downloads/distinfo +++ b/www/trac-downloads/distinfo @@ -1,2 +1,2 @@ -SHA256 (trac/downloadsplugin-0.12.0.3.tar.gz) = 31a3dc9a4198aaf4341d65159a5e81dd3b3cc54c6263853ad05786298497390d -SIZE (trac/downloadsplugin-0.12.0.3.tar.gz) = 18676 +SHA256 (trac/downloadsplugin-0.12.0.3.10047.tar.gz) = 966b88e4f0b2cbd4da72e5bdec8c592670d2574771460be7780edb18c03e4e7a +SIZE (trac/downloadsplugin-0.12.0.3.10047.tar.gz) = 18756 diff --git a/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py b/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py new file mode 100644 index 000000000000..fd163efb432d --- /dev/null +++ b/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- tracdownloads/consoleadmin.py.orig ++++ tracdownloads/consoleadmin.py +@@ -122,7 +122,8 @@ + self.log.debug(download) + + # Upload file to DB and file storage. +- api.store_download(context, download, file) ++ api._add_download(context, download, file) ++ + + # Close input file and commit changes in DB. + file.close() |