Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#2522 closed defect (fixed)

trac-admin initenv from command line arguments

Reported by: markb@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.10
Component: admin/console Version: devel
Severity: normal Keywords: trac-admin initenv arguments
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

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

Change History (3)

comment:1 by Christopher Lenz, 19 years ago

Owner: changed from daniel to Christopher Lenz
Status: newassigned

comment:2 by Christopher Lenz, 19 years ago

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed in [2672].

comment:3 by Christopher Lenz, 19 years ago

Milestone: 1.00.10

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.