File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -882,12 +882,6 @@ def install_package(self, package_name):
882
882
pristine_package_path = os .path .join (os .path .dirname (
883
883
sublime .packages_path ()), 'Pristine Packages' , package_filename )
884
884
885
- package_bytes = self .download_url (url , 'Error downloading package.' )
886
- if package_bytes == False :
887
- return False
888
- with open (package_path , "wb" ) as package_file :
889
- package_file .write (package_bytes )
890
-
891
885
package_dir = self .get_package_dir (package_name )
892
886
893
887
if os .path .exists (os .path .join (package_dir , '.git' )):
@@ -899,6 +893,12 @@ def install_package(self, package_name):
899
893
self .settings ['hg_update_command' ], package_dir ,
900
894
self .settings ['cache_length' ]).run ()
901
895
896
+ package_bytes = self .download_url (url , 'Error downloading package.' )
897
+ if package_bytes == False :
898
+ return False
899
+ with open (package_path , "wb" ) as package_file :
900
+ package_file .write (package_bytes )
901
+
902
902
if not os .path .exists (package_dir ):
903
903
os .mkdir (package_dir )
904
904
You can’t perform that action at this time.
0 commit comments