Edgewall Software

Ticket #2522 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

trac-admin initenv from command line arguments

Reported by: markb@… Owned by: cmlenz
Priority: normal Milestone: 0.10
Component: admin/console Version: devel
Severity: normal Keywords: trac-admin initenv arguments
Cc:

Description (last modified by cmlenz) (diff)

Can't initalize a trac instance.

> trac-admin /tmp/test initenv 'example' "sqlite:db/trac.db" "/svn/test" svn "/usr/local/python/share/trac/templates"
Command failed: need more than 4 values to unpack

Problem is, its trying to unpack 4 command line arguments when 5 are required. Its easily fixed by changing line 568 of "scripts/admin.py" to read "templates_dir = arg[:5]" instead of "templates_dir = arg[:4]".

Attachments

Change History

Changed 3 years ago by cmlenz

  • owner changed from daniel to cmlenz
  • status changed from new to assigned

Changed 3 years ago by cmlenz

  • status changed from assigned to closed
  • resolution set to fixed
  • description modified (diff)

Fixed in [2672].

Changed 3 years ago by cmlenz

  • milestone changed from 1.0 to 0.10

Add/Change #2522 (trac-admin initenv from command line arguments)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.