-
-
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
Allow forcing the qgis version #45
Comments
You can already force it by writing in the echo "https://plugins.qgis.org/plugins/plugins.xml?qgis=3.4" > /your/sources.list Then indeed, we would have a warning saying your version is hardcoded. |
It doesn't work as I could expect. I have almost the same issue. Although Qgis 3.10 or Qgis 3.16, and python3-qgis are installed globally (with debian/qgis packages), it replaces If I set the version into the sources.list, we have this message
The latest sentence is very very confusing. (no, i don't want the process will continue with 3.22, I indicated 3.10, it should continue with 3.10). And the whole text does not make sens when I set myself the source.list, when I know what I'm doing. This is my ansible script which both install Qgis and setup the source.list, so the version given into the source.list is the same as the version of the installed Qgis. So it produces warnings that are not relevant here, and make the detection of real warning more difficult. From my point of view, this kind of message should be hidden except if we give a flag like |
To sum up, I think we should have a flag to disable automatic discovering of the version. Any software that offer features that guess something, should have a way to disable these features, as there could be cases where it does not work well. I propose
|
Or we could have a sub-command |
That's not very convenient, especially since the source.list template [VERSION] is then remplaced on the fly by the version hardcoded in the python code. Amha, an option at the command line is far better that an hardcoded arbitrary value. |
@dmarteau, Yes, I totally agree, I was just giving a quick tip to achieve it with the current state of the code.
Indeed, I took this as a bug. It has been fixed in c56b31d There isn't any QGIS default version involved when installing / upgrading. I let the ticket open for further updates. |
When running qgis-plugin manager without qgis framework installed it use an arbitrary default qgis version which does really not make sens in this context.
In this case it would be more appropriate to let the user specify the qgis version with an appropriate option (i.e --qgis-version X.YZ) for all commands fetching remote infos (search, update, ....)
The text was updated successfully, but these errors were encountered: