Add Download using command line
|Reported by:||galaktor||Owned by:||Blackhex|
It would be really great, if there would be any straight-forward way to add a download to the database using the command line (like managing tickets using trac-admin). I would love to use DownloadsPlugin with continuous integration, where the latest build will automatically be added as a new download. I would add a task to CC or Ant to execute whatever command is necessary.
Maybe it could work something like this:
trac-admin [projectlocation] add download [attributes]... [pathtofile]
Removing a download could work the same way, using "remove" instead of "add".
If the path to the file is relative, then DownloadsPlugin looks within the downloads cache defined in trac.ini. It can also be absolute, meaning anywhere on the server.
This would be an awesome addition to DownloadsPlugin!
Change History (9)
comment:8 Changed 7 years ago by Blackhex
- Resolution set to fixed
- Status changed from assigned to closed