harry-cpp / code-nautilus

VSCode extension for Nautilus
The Unlicense
419 stars 77 forks source link

skip installing python-nautilus if it is already installed #5

Closed 7aman closed 5 years ago

7aman commented 5 years ago

Updating code-nautilus makes dnf and apt to check all repositories. This takes time and traffic (50Mb or more in some cases).

7aman commented 5 years ago

also remove ugly reports from wget and just show download bar.

comparing final results:

[myname@mypc ~]$ wget -qO- https://raw.githubusercontent.com/cra0zy/code-nautilus/master/install.sh | bash
Installing python-nautilus...
[sudo] password for myname: 
Fedora 30 openh264 (From Cisco) - x86_64                                                           270  B/s | 542  B     00:02    
Fedora Modular 30 - x86_64                                                                         2.5 kB/s | 6.5 kB     00:02    
Fedora Modular 30 - x86_64 - Updates                                                               5.9 kB/s | 5.8 kB     00:00    
Fedora 30 - x86_64 - Updates                                                                       4.3 kB/s | 6.0 kB     00:01    
Fedora 30 - x86_64                                                                                 345 kB/s |  70 MB     03:27    
mono-centos7-stable                                                                                108 kB/s | 1.3 MB     00:12    
Opera packages                                                                                     6.2 kB/s |  11 kB     00:01    
RPM Fusion for Fedora 30 - Free - Updates                                                           14 kB/s | 284 kB     00:20    
RPM Fusion for Fedora 30 - Free                                                                     39 kB/s | 735 kB     00:19    
RPM Fusion for Fedora 30 - Nonfree - Updates                                                       8.5 kB/s |  40 kB     00:04    
RPM Fusion for Fedora 30 - Nonfree                                                                 8.0 kB/s | 227 kB     00:28    
Visual Studio Code                                                                                  79 kB/s | 2.1 MB     00:27    
Package nautilus-python-1.2.2-3.fc30.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Removing previous version (if found)...
Downloading newest version...
--2019-07-18 19:24:19--  https://raw.githubusercontent.com/cra0zy/code-nautilus/master/code-nautilus.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1825 (1.8K) [text/plain]
Saving to: ‘/home/myname/.local/share/nautilus-python/extensions/code-nautilus.py’

/home/myname/.local/share/nautil 100%[=========================================================>]   1.78K  --.-KB/s    in 0s      

2019-07-18 19:24:20 (29.8 MB/s) - ‘/home/myname/.local/share/nautilus-python/extensions/code-nautilus.py’ saved [1825/1825]

Restarting nautilus...
Installation Complete

vs

[myname@mypc code-nautilus]$ ./install.sh 
Installing python-nautilus...
nautilus-python is already installed.
Removing previous version (if found)...
Downloading newest version...
/home/myname/.local/share/nautil 100%[=========================================================>]   1.78K  --.-KB/s    in 0s      
Restarting nautilus...
Installation Complete
harry-cpp commented 5 years ago

Looks good to me, thanks @7aman , merging!