[terminal] we should optimize the display of pacman's progress #39

Closed
opened 2015-10-06 10:30:44 +00:00 by philm · 11 comments
philm commented 2015-10-06 10:30:44 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Currently we have it like this:

manjaro-language

We should find a way to change/optimize our display of pacman progress outputs in MSM.

*Created by: philmmanjaro* Currently we have it like this: ![manjaro-language](https://cloud.githubusercontent.com/assets/5050022/10306309/55b5dae6-6c26-11e5-9789-8108958955d6.png) We should find a way to change/optimize our display of pacman progress outputs in **MSM**.
philm commented 2015-10-06 10:43:19 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Maybe we can use something similar as in pamac to make it not printing out several lines of same content but instead the real progress bars of pacman.

*Created by: philmmanjaro* Maybe we can use something similar as in [pamac](https://github.com/manjaro/pamac/commit/95d3ffd0718e3570c831c2eecac19197a218f59e) to make it not printing out several lines of same content but instead the real progress bars of pacman.
philm commented 2015-10-06 14:29:22 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

I will check it out

*Created by: Kirek* I will check it out
philm commented 2015-10-19 07:52:48 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

This four times in a row depends on the terminal. If you use lxterminal you have it also there. So this is pretty "normal" ;)

*Created by: philmmanjaro* This four times in a row depends on the terminal. If you use **lxterminal** you have it also there. So this is pretty "normal" ;)
philm commented 2015-10-19 10:30:16 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: NuLogicSystems

So there's nothing that can be done? Clemens thinks it's trying to install these packages 4 times each and hanging the system, If he thinks this then so will the end user.

*Created by: NuLogicSystems* So there's nothing that can be done? Clemens thinks it's trying to install these packages 4 times each and hanging the system, If he thinks this then so will the end user.
philm commented 2015-10-19 11:16:35 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

please install lxterminal on your end and install one package and you will see the same. It is just how a terminal displays the output, in this case the progressbar of pacman downloading or installing packages. This is a visual problem. No package will be installed 4 times in a row. However the terminal of XFCE and KDE has not the problem so has pamac. With octopi it depends on the terminal used. With pretty "normal" I ment, that other terminals have the same issue. Ramon is already checking the issue ...

*Created by: philmmanjaro* please install **lxterminal** on your end and install one package and you will see the same. It is just how a terminal displays the output, in this case the progressbar of **pacman** downloading or installing packages. This is a visual problem. No package will be installed 4 times in a row. However the terminal of **XFCE** and **KDE** has not the problem so has **pamac**. With **octopi** it depends on the terminal used. With pretty "normal" I ment, that other terminals have the same issue. **Ramon** is already checking the issue ...
philm commented 2015-10-19 11:34:00 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Ok, to clarify the issue here. It doesn't matter which terminal you use, but how you display the output. If you have a dynamic terminal it works as pacman has a progressbar. This is a normal pacman -Syu output:

[manjaro@manjaro-FX ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                  3.1 MiB  9.65M/s 00:00 [#######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (2) flashplugin-11.2.202.540-1  palemoon-bin-25.7.3-1

Total Download Size:   32.41 MiB
Total Installed Size:  85.26 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 flashplugin-11.2.20...     8.2 MiB  10.5M/s 00:01 [#######################] 100%
 palemoon-bin-25.7.3...    24.2 MiB  11.8M/s 00:02 [#######################] 100%
(2/2) checking keys in keyring                     [#######################] 100%
(2/2) checking package integrity                   [#######################] 100%
(2/2) loading package files                        [#######################] 100%
(2/2) checking for file conflicts                  [#######################] 100%
(1/2) upgrading flashplugin                        [#######################] 100%
(2/2) upgrading palemoon-bin                       [#######################] 100%

Now if you create a bash script with that command as content and execute it you will get something like this:

[manjaro@manjaro-FX ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core                     134.7 KiB   673K/s 00:00 [#######################] 100%
 extra                   1935.4 KiB  4.27M/s 00:00 [#######################] 100%
 community                  3.2 MiB  9.05M/s 00:00 [#######################] 100%
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (1) manjaro-system-20151019-1

Total Download Size:   0.01 MiB
Total Installed Size:  0.00 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 manjaro-system-2015...     5.6 KiB  0.00B/s 00:00 [#######################] 100%
(1/1) checking keys in keyring                     [#######################] 100%
(1/1) checking package integrity                   [#######################] 100%
(1/1) loading package files                        [#######################] 100%
(1/1) checking for file conflicts                  [#######################] 100%
(1/1) upgrading manjaro-system                     [#######################] 100%
==> Upgrading 'dbus-openrc' ...
error: target not found: dbus
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
:: Replace openrc-core with community/openrc? [Y/n] 
resolving dependencies...
looking for conflicting packages...

Packages (132) acpid-openrc-20151014-1  adwaita-icon-theme-3.18.0-1  alsa-utils-openrc-20151014-1  at-spi2-atk-2.18.1-1  ...  netifrc-0.3.1-3

Total Download Size:   110.23 MiB
Total Installed Size:  559.05 MiB
Net Upgrade Size:       -3.48 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
downloading tzdata-2015g-1-any.pkg.tar.xz...
downloading tzdata-2015g-1-any.pkg.tar.xz...
downloading tzdata-2015g-1-any.pkg.tar.xz...
downloading tzdata-2015g-1-any.pkg.tar.xz...
downloading tzdata-2015g-1-any.pkg.tar.xz...
downloading libutil-linux-2.27-6-i686.pkg.tar.xz...
downloading libutil-linux-2.27-6-i686.pkg.tar.xz...
downloading libutil-linux-2.27-6-i686.pkg.tar.xz...
downloading libutil-linux-2.27-6-i686.pkg.tar.xz...
downloading libutil-linux-2.27-6-i686.pkg.tar.xz...
downloading glib2-2.46.0-3-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading xz-5.2.2-1-i686.pkg.tar.xz...
downloading xz-5.2.2-1-i686.pkg.tar.xz...
downloading xz-5.2.2-1-i686.pkg.tar.xz...

So instead of:

downloading flashplugin-11.2.20...     8.2 MiB  10.5M/s 00:01 [##---------] 10%
downloading flashplugin-11.2.20...     8.2 MiB  10.5M/s 00:01 [######-----] 50%
downloading flashplugin-11.2.20...     8.2 MiB  10.5M/s 00:01 [########---] 90%
flashplugin-11.2.20...     8.2 MiB  10.5M/s 00:01 [#######################] 100%

The static output is:

downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...
downloading util-linux-2.27-6-i686.pkg.tar.xz...

This should clarify the issue here ...

*Created by: philmmanjaro* Ok, to clarify the issue here. It doesn't matter which terminal you use, but how you display the output. If you have a dynamic terminal it works as **pacman** has a progressbar. This is a normal **pacman -Syu** output: ``` [manjaro@manjaro-FX ~]$ sudo pacman -Syu :: Synchronizing package databases... core is up to date extra is up to date community 3.1 MiB 9.65M/s 00:00 [#######################] 100% :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Packages (2) flashplugin-11.2.202.540-1 palemoon-bin-25.7.3-1 Total Download Size: 32.41 MiB Total Installed Size: 85.26 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] :: Retrieving packages ... flashplugin-11.2.20... 8.2 MiB 10.5M/s 00:01 [#######################] 100% palemoon-bin-25.7.3... 24.2 MiB 11.8M/s 00:02 [#######################] 100% (2/2) checking keys in keyring [#######################] 100% (2/2) checking package integrity [#######################] 100% (2/2) loading package files [#######################] 100% (2/2) checking for file conflicts [#######################] 100% (1/2) upgrading flashplugin [#######################] 100% (2/2) upgrading palemoon-bin [#######################] 100% ``` Now if you create a bash script with that command as content and execute it you will get something like this: ``` [manjaro@manjaro-FX ~]$ sudo pacman -Syu :: Synchronizing package databases... core 134.7 KiB 673K/s 00:00 [#######################] 100% extra 1935.4 KiB 4.27M/s 00:00 [#######################] 100% community 3.2 MiB 9.05M/s 00:00 [#######################] 100% :: Some packages should be upgraded first... resolving dependencies... looking for conflicting packages... Packages (1) manjaro-system-20151019-1 Total Download Size: 0.01 MiB Total Installed Size: 0.00 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] :: Retrieving packages ... manjaro-system-2015... 5.6 KiB 0.00B/s 00:00 [#######################] 100% (1/1) checking keys in keyring [#######################] 100% (1/1) checking package integrity [#######################] 100% (1/1) loading package files [#######################] 100% (1/1) checking for file conflicts [#######################] 100% (1/1) upgrading manjaro-system [#######################] 100% ==> Upgrading 'dbus-openrc' ... error: target not found: dbus :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Starting full system upgrade... :: Replace openrc-core with community/openrc? [Y/n] resolving dependencies... looking for conflicting packages... Packages (132) acpid-openrc-20151014-1 adwaita-icon-theme-3.18.0-1 alsa-utils-openrc-20151014-1 at-spi2-atk-2.18.1-1 ... netifrc-0.3.1-3 Total Download Size: 110.23 MiB Total Installed Size: 559.05 MiB Net Upgrade Size: -3.48 MiB :: Proceed with installation? [Y/n] :: Retrieving packages ... downloading tzdata-2015g-1-any.pkg.tar.xz... downloading tzdata-2015g-1-any.pkg.tar.xz... downloading tzdata-2015g-1-any.pkg.tar.xz... downloading tzdata-2015g-1-any.pkg.tar.xz... downloading tzdata-2015g-1-any.pkg.tar.xz... downloading libutil-linux-2.27-6-i686.pkg.tar.xz... downloading libutil-linux-2.27-6-i686.pkg.tar.xz... downloading libutil-linux-2.27-6-i686.pkg.tar.xz... downloading libutil-linux-2.27-6-i686.pkg.tar.xz... downloading libutil-linux-2.27-6-i686.pkg.tar.xz... downloading glib2-2.46.0-3-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading xz-5.2.2-1-i686.pkg.tar.xz... downloading xz-5.2.2-1-i686.pkg.tar.xz... downloading xz-5.2.2-1-i686.pkg.tar.xz... ``` So instead of: ``` downloading flashplugin-11.2.20... 8.2 MiB 10.5M/s 00:01 [##---------] 10% downloading flashplugin-11.2.20... 8.2 MiB 10.5M/s 00:01 [######-----] 50% downloading flashplugin-11.2.20... 8.2 MiB 10.5M/s 00:01 [########---] 90% flashplugin-11.2.20... 8.2 MiB 10.5M/s 00:01 [#######################] 100% ``` The static output is: ``` downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... downloading util-linux-2.27-6-i686.pkg.tar.xz... ``` This should clarify the issue here ...
philm commented 2015-10-19 11:40:54 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

This means on a dynamic terminal pacman can refresh the one line as in a progressbar, on a static terminal pacman simply prints each line, which might look awkward.

*Created by: philmmanjaro* This means on a dynamic terminal **pacman** can refresh the one line as in a progressbar, on a static terminal **pacman** simply prints each line, which might look awkward.
philm commented 2015-11-06 00:37:47 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

@AJSlye: can you check if this fixed it for you? a5c88aa009 You can find it within kcm-msm 0.4.80.r375.a5c88aa-1 currently in testing/unstable.

*Created by: philmmanjaro* @AJSlye: can you check if this fixed it for you? a5c88aa0096ae12b3efc3ee3d0d969e5d04235c8 You can find it within **kcm-msm 0.4.80.r375.a5c88aa-1** currently in **testing/unstable**.
philm commented 2015-11-08 14:43:18 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Just tested it with 15.12-pre1. It works. Now we need a backport to 0.4.x branch ;)

*Created by: philmmanjaro* Just tested it with **15.12-pre1**. It works. Now we need a backport to **0.4.x** branch ;)
philm commented 2015-11-08 14:47:33 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: NuLogicSystems

Yes, let's. ;)

On Sun, Nov 8, 2015 at 9:43 AM, Philip Müller notifications@github.com
wrote:

Just tested it with 15.12-pre1. It works. Now we need a backport to
0.4.x branch ;)


Reply to this email directly or view it on GitHub
https://github.com/manjaro/manjaro-settings-manager/issues/39#issuecomment-154830313
.

*Created by: NuLogicSystems* Yes, let's. ;) On Sun, Nov 8, 2015 at 9:43 AM, Philip Müller notifications@github.com wrote: > Just tested it with _15.12-pre1_. It works. Now we need a backport to > _0.4.x_ branch ;) > > — > Reply to this email directly or view it on GitHub > https://github.com/manjaro/manjaro-settings-manager/issues/39#issuecomment-154830313 > .
philm commented 2017-01-28 14:52:55 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

I think this was fixed some time ago

*Created by: Kirek* I think this was fixed some time ago
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
applications/manjaro-settings-manager#39
No description provided.