[GRASS-SVN] r73365 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.import
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 19 04:09:57 PDT 2018
Author: martinl
Date: 2018-09-19 04:09:57 -0700 (Wed, 19 Sep 2018)
New Revision: 73365
Modified:
grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py
Log:
i.sentinel.import: fix -l flag - do not remove unzipped files
Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py 2018-09-19 03:03:26 UTC (rev 73364)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py 2018-09-19 11:09:57 UTC (rev 73365)
@@ -70,6 +70,11 @@
gs.fatal(_('Input directory <{}> not exists').format(input_dir))
def __del__(self):
+ if flags['l']:
+ # unzipped files are required when linking
+ return
+
+ # otherwise unzipped directory can be removed (?)
for dirname in self._dir_list:
dirpath = os.path.join(self.input_dir, dirname)
gs.debug('Removing <{}>'.format(dirpath))
More information about the grass-commit
mailing list