Hello community,

here is the log from the commit of package yast2-packager for openSUSE:Factory 
checked in at 2020-05-09 19:50:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-packager (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-packager.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-packager"

Sat May  9 19:50:31 2020 rev:394 rq:801121 version:4.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-packager/yast2-packager.changes    
2020-04-25 20:20:45.989086964 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-packager.new.2738/yast2-packager.changes  
2020-05-09 19:50:39.952620398 +0200
@@ -1,0 +2,7 @@
+Thu May  7 09:38:10 UTC 2020 - Michal Filka <[email protected]>
+
+- bnc#1166661
+  - do not crash on empty system_packages_repos.yaml
+- 4.3.0 
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.uwwmvC/_old  2020-05-09 19:50:40.620621832 +0200
+++ /var/tmp/diff_new_pack.uwwmvC/_new  2020-05-09 19:50:40.624621840 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-packager
-Version:        4.2.62
+Version:        4.3.0
 Release:        0
 Summary:        YaST2 - Package Library
 License:        GPL-2.0-or-later

++++++ yast2-packager-4.2.62.tar.bz2 -> yast2-packager-4.3.0.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.2.62/package/yast2-packager.changes 
new/yast2-packager-4.3.0/package/yast2-packager.changes
--- old/yast2-packager-4.2.62/package/yast2-packager.changes    2020-04-20 
14:05:07.000000000 +0200
+++ new/yast2-packager-4.3.0/package/yast2-packager.changes     2020-05-07 
13:46:12.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Thu May  7 09:38:10 UTC 2020 - Michal Filka <[email protected]>
+
+- bnc#1166661
+  - do not crash on empty system_packages_repos.yaml
+- 4.3.0 
+
+-------------------------------------------------------------------
 Mon Apr 20 11:46:59 UTC 2020 - Josef Reidinger <[email protected]>
 
 - prevent race condition between log rotation and migration
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.2.62/package/yast2-packager.spec 
new/yast2-packager-4.3.0/package/yast2-packager.spec
--- old/yast2-packager-4.2.62/package/yast2-packager.spec       2020-04-20 
14:05:07.000000000 +0200
+++ new/yast2-packager-4.3.0/package/yast2-packager.spec        2020-05-07 
13:46:12.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-packager
-Version:        4.2.62
+Version:        4.3.0
 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.2.62/src/lib/y2packager/known_repositories.rb 
new/yast2-packager-4.3.0/src/lib/y2packager/known_repositories.rb
--- old/yast2-packager-4.2.62/src/lib/y2packager/known_repositories.rb  
2020-04-20 14:05:07.000000000 +0200
+++ new/yast2-packager-4.3.0/src/lib/y2packager/known_repositories.rb   
2020-05-07 13:46:12.000000000 +0200
@@ -70,7 +70,18 @@
         return []
       end
 
-      status = YAML.load_file(status_file)
+      begin
+        status = YAML.load_file(status_file)
+      rescue Psych::SyntaxError => e
+        log.error("Status file #{status_file} is corrupted: #{e.message}")
+        return []
+      end
+
+      if !status
+        log.info("Status file #{status_file} is empty or its content is 
invalid")
+        return []
+      end
+
       # unify the file in case it was manually modified
       status.uniq!
       status.sort!


Reply via email to