-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify core data model, we're in a data muddle #35
Comments
...and, I realize I've muddled and confused things. The main data tables need clear separation, "package names and version available on server" and "what is actually locally installed". The old functions actually maintained this better before I started messing with them. (In my defense, they were horribly opaque tho'.) For instance I grew the idea that `apt ball` reconstructed the version name from the currently available archive filename on the server. Yes, get_ball() constructs from the filename, but not from the filename in setup.ini, it's actually from the name in installed.db -- a crucial difference! TODO: rescue good parts of old functions, clearly separate local/server info, dump overlapping dict records.
I got a problem to understand how to distinguish between dists ['curr', 'prev', 'test'] if a package is installed. Is it always in responsibility of the user? Say, apt upgrade is used with a package in prev and another in curr? I'm asking, because in my OO-Try i didn't know where to put the information from setup.ini and installed.db if there are several dists. I think we should store the dist with the installed package, but we want to be compatible with osgeo4w-setup.exe, right? |
you don't need to distinguish in installed.db - a package is just installed in one version - it doesn't matter if it was |
Oh, didn't know these possibility in apt-get, I should interview our system administrator :-) |
Oh, and as noted else where: Comparing version strings fails by simple comparsion with logical less than (<), 1.11.1 < 1.9.1 gives true. |
Thanks for the clarification Jurgen! Apt has some (inherited) code stubs for dealing with prev, curr, test. I've not taken time to dig in and see if they can be made to work; Created #36 for version handling fixing, thanks Andreas. |
I did a small installation with osgeo4w-setup.exe and there was no setup.ini in /etc/setup. I think it changed with x64-packages. setup.ini is now under ./cryptic-download-dir/x86/ and this is not mandotory OSGEO4W_ROOT/dev/..., like I assumed for my portable installation. |
I didn't know the location of extracted setup.ini had changed. Thanks for the heads up. Use of setup.rc is not complete, see #18. |
I'am returning th the clarify-discussion:
|
Going to push for an exe package release before seeing this through, and putting the target for "just 3 globals" to 2nd release from now, to give some breathing room for it to be done properly. |
When working on better information messages from
apt info
command I realized I've made a muddle:So something like
I want to think carefully about the names though. We'll be using them frequently. They should make intuitive sense when read, while being short enough to cause no typing strain and keep our code phrases short and fast to read.
ALLCAPS
is out; no shouting.setup_ini
is being used (but could be moved, with some effort)setup_d
,installed_d
?sini_d
,inst_d
?ini_d
,inst_d
?S
,I
? (is this still shouting?)A couple of spelled out phrases:
The text was updated successfully, but these errors were encountered: