Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 18, 2019
Merged

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

merged 3 commits into from
Jul 18, 2019

Conversation

7aman
Copy link
Contributor

@7aman 7aman commented Jul 18, 2019

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

@7aman
Copy link
Contributor Author

7aman commented Jul 18, 2019

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

@7aman 7aman closed this Jul 18, 2019
@7aman 7aman reopened this Jul 18, 2019
@harry-cpp
Copy link
Owner

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

@harry-cpp harry-cpp merged commit ddff975 into harry-cpp:master Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants