Skip to content

Commit

Permalink
i.landsat.import: update suffix after latest USGS change
Browse files Browse the repository at this point in the history
This PR adapts `i.landsat.import` to the latest archive format (no longer `.tar.gz` but simply `.tar`.
  • Loading branch information
neteler committed Apr 6, 2023
1 parent 051971e commit 630736c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imagery/i.landsat/i.landsat.import/i.landsat.import.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def _untar(inputdir, untardir):
gs.fatal(_("Directory <{}> is not writable.").format(untardir))

if options["pattern_file"]:
filter_f = "*" + options["pattern_file"] + "*.tar.gz"
filter_f = "*" + options["pattern_file"] + "*.tar*"
else:
filter_f = "*.tar.gz"
filter_f = "*.tar*"

scenes_to_untar = glob.glob(os.path.join(inputdir, filter_f))

Expand Down

0 comments on commit 630736c

Please sign in to comment.