Git Product home page Git Product logo

Comments (9)

amr66 avatar amr66 commented on August 28, 2024

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?
May be we could change package names according to the dist? E.g. gdal and gdal-prev?

from apt.

jef-n avatar jef-n commented on August 28, 2024

you don't need to distinguish in installed.db - a package is just installed in one version - it doesn't matter if it was curr, prev or test.
In osgeo4w-setup you get upgrades to test versions if you check Exp(erimental).
On debian you can specify distributions via -t (eg. -t experimental or -t wheezy-backports) or specify explicit available versions by apt-get install package=$versionno).

from apt.

amr66 avatar amr66 commented on August 28, 2024

Oh, didn't know these possibility in apt-get, I should interview our system administrator :-)
And yes, I came to the same conclusion with 'curr', 'test' and 'prev', was just a little confused. In apt this is missing, because we only deal with 'curr' right now?

from apt.

amr66 avatar amr66 commented on August 28, 2024

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.
http://stackoverflow.com/questions/1714027/version-number-comparison

from apt.

maphew avatar maphew commented on August 28, 2024

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; curr and --ini=.... has been good enough for me. I would like to achieve/maintain functional parity with -setup.exe though, so handling at least test would be good.

Created #36 for version handling fixing, thanks Andreas.

from apt.

amr66 avatar amr66 commented on August 28, 2024

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.
So we always have to read setup.rc and last_cache entry, which i think apt does?

from apt.

maphew avatar maphew commented on August 28, 2024

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.

from apt.

amr66 avatar amr66 commented on August 28, 2024

I'am returning th the clarify-discussion:
at least we have

  • a dict for setup/config, containing values from setup.rc,
  • a dict with available packages from the server, retrieved from setup.ini
  • a dict with installed packages, containing data from installed.db
    Any aditional information that could be generated should clearly derive or be added to these dictionaries. So as I would like to avoid to much global variables, we can think of additional keys inside of three global disctionary. We wouldn't have "last_mirror", but "global_dict_setup['last_mirror']". I did something like that in my object oriented code, expanding the data with those global variables for pathes, dists etc. With xy_get_info_abc() we could ask for values from theses dicts.

from apt.

maphew avatar maphew commented on August 28, 2024

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.

from apt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.