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.
This commit is contained in:
Brooks Davis 2011-05-31 21:24:40 +00:00
parent 0db77cac72
commit c93b803b40
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274899
3 changed files with 20 additions and 4 deletions

View file

@ -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}

View file

@ -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

View file

@ -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()