[Osgeo4w-trac] [osgeo4w] #259: apt on virgin install from setup.exe complains environment not set

OSGeo4W trac_osgeo4w at osgeo.org
Sun Feb 5 03:28:00 EST 2012


#259: apt on virgin install from setup.exe complains environment not set
-------------------+--------------------------------------------------------
Reporter:  maphew  |       Owner:  maphew 
    Type:  defect  |      Status:  new    
Priority:  major   |   Component:  Package
 Version:          |    Keywords:  pkg-apt
-------------------+--------------------------------------------------------
 After installing a fairly minimal osgeo4w setup (msvcrt, apt, python) apt
 complains setup hasn't been run:

 {{{
 D:\OSGeo4W\bin\apt list
 error: d:/OSGeo4W/etc/setup//setup.ini no such file
 error: set OSGEO4W_ROOT and run "apt setup"
 }}}

 For users, a simple `apt setup` at this point will fix it with no further
 action necessary.

 It seems setup.exe no longer saves a copy of setup.ini in etc. An
 immediate fix in apt would be to check for `.\etc\setup\installed.db`
 instead, which should be guaranteed always present.

 Apt itself will still download and put setup.ini in etc. Except for
 possible confusion for future developers I see no harm in that. It would
 be worth looking into what setup.exe does now and see if apt should follow
 suit.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/259>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list