#458 closed enhancement (fixed)
Generate setup.ini based on aribitrary date and/or time
Reported by: | maphew | Owned by: | |
---|---|---|---|
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. ;-)
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: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.