Browse Source

g.extension: fix -d flag

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51189 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 năm trước cách đây
mục cha
commit
684a95502d

+ 2 - 2
scripts/g.extension/g.extension.py

@@ -738,7 +738,7 @@ def install_extension_other(name):
         sys.stderr.write(' '.join(makeCmd) + '\n')
         sys.stderr.write(' '.join(makeCmd) + '\n')
         grass.message(_("To install run:\n\n"))
         grass.message(_("To install run:\n\n"))
         sys.stderr.write(' '.join(installCmd) + '\n')
         sys.stderr.write(' '.join(installCmd) + '\n')
-        return
+        return 0
     
     
     os.chdir(os.path.join(tmpdir, name))
     os.chdir(os.path.join(tmpdir, name))
     
     
@@ -755,7 +755,7 @@ def install_extension_other(name):
         grass.fatal(_('Compilation failed, sorry. Please check above error messages.'))
         grass.fatal(_('Compilation failed, sorry. Please check above error messages.'))
 
 
     if flags['i'] or name in gui_list:
     if flags['i'] or name in gui_list:
-        return
+        return 0
     
     
     grass.message(_("Installing..."))
     grass.message(_("Installing..."))