[GRASS-git] [OSGeo/grass] 465a7a: Fix valid location check, sync with other function...

Vaclav Petras noreply at github.com
Thu Aug 5 06:47:55 PDT 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 465a7a3a6e80d814392d55bbff5a35f7c6d527f8
      https://github.com/OSGeo/grass/commit/465a7a3a6e80d814392d55bbff5a35f7c6d527f8
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M python/grass/grassdb/checks.py
    A python/grass/grassdb/testsuite/test_checks.py

  Log Message:
  -----------
  Fix valid location check, sync with other functions (#1777)

* This fixes the path join code in valid location check, i.e., fixes 94bcea4216cdabcd18dbe5dc4686e38d4d3800de (#1715 ).
* In the new 1-or-3 parameter interface, path to database was dropped when constructing the full path to the location.
* Creating mapsets from command line with -c now works again.
* Other validity and existence checks now use the same 1-or-3 parameter interface (path or db, loc, mapset).
* Tests added for modified functions and for couple of related ones.
* Import order fixed with isort not to have glob mixed GRASS imports as pointed out by Pylint.
* Two missing docstrings added to the is-current-x checks.




More information about the grass-commit mailing list