Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-packager for openSUSE:Factory 
checked in at 2022-05-20 17:50:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-packager (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-packager.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-packager"

Fri May 20 17:50:35 2022 rev:427 rq:978139 version:4.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-packager/yast2-packager.changes    
2022-05-05 23:04:39.597427480 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-packager.new.1538/yast2-packager.changes  
2022-05-20 17:51:04.331244916 +0200
@@ -1,0 +2,7 @@
+Tue May 17 20:49:27 UTC 2022 - Imobach Gonzalez Sosa <igonzalezs...@suse.com>
+
+- Fix package counters in the installation slideshow
+  (boo#1199621).
+- 4.5.4
+
+-------------------------------------------------------------------

Old:
----
  yast2-packager-4.5.3.tar.bz2

New:
----
  yast2-packager-4.5.4.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.VAvpma/_old  2022-05-20 17:51:05.187245696 +0200
+++ /var/tmp/diff_new_pack.VAvpma/_new  2022-05-20 17:51:05.191245699 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-packager
-Version:        4.5.3
+Version:        4.5.4
 Release:        0
 Summary:        YaST2 - Package Library
 License:        GPL-2.0-or-later

++++++ yast2-packager-4.5.3.tar.bz2 -> yast2-packager-4.5.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.5.3/package/yast2-packager.changes 
new/yast2-packager-4.5.4/package/yast2-packager.changes
--- old/yast2-packager-4.5.3/package/yast2-packager.changes     2022-05-03 
17:41:29.000000000 +0200
+++ new/yast2-packager-4.5.4/package/yast2-packager.changes     2022-05-19 
16:07:48.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue May 17 20:49:27 UTC 2022 - Imobach Gonzalez Sosa <igonzalezs...@suse.com>
+
+- Fix package counters in the installation slideshow
+  (boo#1199621).
+- 4.5.4
+
+-------------------------------------------------------------------
 Tue May  3 06:50:36 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
 
 - Run the package solver after selecting additional system
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.5.3/package/yast2-packager.spec 
new/yast2-packager-4.5.4/package/yast2-packager.spec
--- old/yast2-packager-4.5.3/package/yast2-packager.spec        2022-05-03 
17:41:29.000000000 +0200
+++ new/yast2-packager-4.5.4/package/yast2-packager.spec        2022-05-19 
16:07:48.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-packager
-Version:        4.5.3
+Version:        4.5.4
 Release:        0
 Summary:        YaST2 - Package Library
 License:        GPL-2.0-or-later
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.5.3/src/modules/PackageSlideShow.rb 
new/yast2-packager-4.5.4/src/modules/PackageSlideShow.rb
--- old/yast2-packager-4.5.3/src/modules/PackageSlideShow.rb    2022-05-03 
17:41:29.000000000 +0200
+++ new/yast2-packager-4.5.4/src/modules/PackageSlideShow.rb    2022-05-19 
16:07:48.000000000 +0200
@@ -47,6 +47,11 @@
       @updated_pkg_list = []
       @removed_pkg_list = []
 
+      # Keep counters for installed, updated and removed packages
+      @installed_pkg_count = 0
+      @updated_pkg_count = 0
+      @removed_pkg_count = 0
+
       # This is a kludge to pass information from one callback that gets the
       # needed information (the pkg name) to another that doesn't.
       @updating = false
@@ -60,9 +65,9 @@
 
     def GetPackageSummary
       {
-        "installed"        => @installed_pkg_list.size,
-        "updated"          => @updated_pkg_list.size,
-        "removed"          => @removed_pkg_list.size,
+        "installed"        => @installed_pkg_count,
+        "updated"          => @updated_pkg_count,
+        "removed"          => @removed_pkg_count,
         "installed_list"   => @installed_pkg_list,
         "updated_list"     => @updated_pkg_list,
         "removed_list"     => @removed_pkg_list,
@@ -260,8 +265,6 @@
     # packages; or, for parallel download + installation, also for downloading.
     #
     def UpdateInstallationProgressText
-      installed_pkg = @installed_pkg_list.size
-      updated_pkg = @updated_pkg_list.size
       remaining_string = FormatRemainingSize(@total_size_to_install - 
@total_installed_size)
       remaining_string += ", " unless remaining_string.empty?
 
@@ -270,7 +273,7 @@
         Builtins.sformat(
           _(" (Remaining: %1%2 packages)"),
           remaining_string,
-          @total_pkgs_to_install - installed_pkg - updated_pkg
+          @total_pkgs_to_install - @installed_pkg_count - @updated_pkg_count
         )
       )
 
@@ -384,6 +387,7 @@
     def PkgInstallDone(pkg_name, pkg_size, deleting)
       if deleting
         @removed_pkg_list << pkg_name if Mode.normal
+        @removed_pkg_count += 1
         log.info "Uninstalled package #{pkg_name}"
       else # installing or updating
         @total_installed_size += pkg_size
@@ -393,9 +397,11 @@
 
         if @updating
           @updated_pkg_list << pkg_name if Mode.normal
+          @updated_pkg_count += 1
           log.info "Updated package #{pkg_name}"
         else
           @installed_pkg_list << pkg_name if Mode.normal
+          @installed_pkg_count += 1
           log.info "Installed package #{pkg_name}"
         end
       end

Reply via email to