-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
g.download.location: Make unzip, untar more robust (#301)
The module can now deal with location being only one of the nested directories for cases when archiving program creates one extra. It recurses one level into the structure (can be modified in the code) which adds additional level to what the Python libraries are doing (which actually makes the code more complex for us). xz is among the recognized extensions. Several special cases and error are now handled gracefully with error being reported for single file in an archive (typically another archive, but leaving that aside) and for file being incomplete (likely not fully downloaded). Functions raise an unified exception, main code now calls fatal when that happens. Filenames without extension don't cause traceback, but cause an error to be reported.
- Loading branch information
1 parent
771b4bd
commit 59ab8a5
Showing
2 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
grass7/general/g.download.location/g.download.location.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters