Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#458 closed enhancement (fixed)

Generate setup.ini based on aribitrary date and/or time

Reported by: maphew Owned by: osgeo4w-dev@…
Priority: major Component: Installer
Version: Keywords: setup.ini
Cc:

Description

I released a new pkg-apt testing package today. When I started setting up an environment to test what it will do in an upgrade situation I realised I need to put Osgeo4W into an older state, which means installing no-longer-current packages first. This isn't so easy.

I think the easiest approach is likely to be to adapting osgeo4w-regen.sh and genini to generate a setup.ini based on a date stamp. Then issuing an instruction like regen.sh 2014-06-01 would crawl the release package tree, ignore any files newer than said date, and generate setup_2014-06-01.ini.

I scanned genini for likely places to put a date filter, but my perl is too weak for the task. ;-)

Change History (3)

comment:1 by jef, 10 years ago

Resolution: fixed
Status: newclosed

genini now has a --date=yyyy-mm-dd argument and ignores older files.

regen.sh wasn't updated and you'll have to run genini manually like this:

jef@download:~$ /osgeo/download/osgeo4w/genini --date=2015-03-01 --arch=x86 --recursive --output=old.ini /osgeo/download/osgeo4w/x86/release
error: /osgeo/download/osgeo4w/x86/release/grass/grass71-dev/setup.hint:7: can't open /osgeo/download/osgeo4w/x86/release/grass/grass71-dev/grass71-dev-7.1.svn-r64718-1.tar.bz2 - No such file or directory
error: /osgeo/download/osgeo4w/x86/release/grass/grass71-dev/setup.hint:7: can't open /osgeo/download/osgeo4w/x86/release/grass/grass71-dev/grass71-dev-7.1.svn-r64718-1.tar.bz2 - No such file or directory
error: /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-dev/mapscript-java-dev/setup.hint:6: not enough package files in /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-dev/mapscript-java-dev
error: /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-dev/mapscript-python-dev/setup.hint:6: not enough package files in /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-dev/mapscript-python-dev
error: /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-dev/setup.hint:6: not enough package files in /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-dev
error: /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-stable-dev/mapscript-java-stable-dev/setup.hint:6: not enough package files in /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-stable-dev/mapscript-java-stable-dev
error: /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-stable-dev/mapscript-python-stable-dev/setup.hint:6: not enough package files in /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-stable-dev/mapscript-python-stable-dev
error: /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-stable-dev/setup.hint:7: not enough package files in /osgeo/download/osgeo4w/x86/release/mapserver/mapserver-stable-dev

Note that that produces more entries like the one from #457, because that apparently wasn't fixed yet and the nightly builds are cleaned up regularly and there are no files left for older states.

comment:2 by jef, 10 years ago

forgot to reference the commit: r1291

comment:3 by maphew, 10 years ago

this is great Jurgen, thank you!

Note: See TracTickets for help on using tickets.