freebsd-ports/www/trac-downloads/files/patch-tracdownloads_consoleadmin.py
Brooks Davis c93b803b40 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.
2011-05-31 21:24:40 +00:00

15 lines
373 B
Python

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