Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sca-patterns-base for 
openSUSE:Factory checked in at 2021-05-05 20:40:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and      /work/SRC/openSUSE:Factory/.sca-patterns-base.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sca-patterns-base"

Wed May  5 20:40:39 2021 rev:3 rq:890771 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes      
2020-12-16 11:01:41.727641089 +0100
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.2988/sca-patterns-base.changes
    2021-05-05 20:41:05.106631893 +0200
@@ -1,0 +2,6 @@
+Tue May  4 14:02:33 UTC 2021 - Jason Record <[email protected]>
+
+- SUSE.getFileSystems fixes invalid index error (bsc#1185594)
+- SUSE.getFileSystems fixes unbound local SWAP variable (bsc#1185593)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ sca-patterns-base.spec ++++++
--- /var/tmp/diff_new_pack.4658lc/_old  2021-05-05 20:41:05.570629850 +0200
+++ /var/tmp/diff_new_pack.4658lc/_new  2021-05-05 20:41:05.574629832 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sca-patterns-base
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ sca-patterns-base-1.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.3.1/libraries/python/SUSE.py 
new/sca-patterns-base-1.3.1/libraries/python/SUSE.py
--- old/sca-patterns-base-1.3.1/libraries/python/SUSE.py        2020-11-06 
23:32:19.517254469 +0100
+++ new/sca-patterns-base-1.3.1/libraries/python/SUSE.py        2021-05-04 
16:12:33.652583029 +0200
@@ -4,7 +4,7 @@
 Library of functions for creating python patterns specific to SUSE
 """
 ##############################################################################
-#  Copyright (C) 2013-2020 SUSE LLC
+#  Copyright (C) 2013-2021 SUSE LLC
 ##############################################################################
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -23,7 +23,7 @@
 #    Jason Record ([email protected])
 #    David Hamner ([email protected])
 #
-#  Modified: 2020 Nov 06
+#  Modified: 2021 May 04
 #
 ##############################################################################
 
@@ -1176,16 +1176,16 @@
                                LENLINE = len(LINE)
                                if( LENLINE == 6 ):
                                        DFDATA_NORMALIZED.append(LINE)
-                               elif( LENLINE == 1 ):
+                               elif( LENLINE == 1 ): # Line wraps because the 
first field is a very long device name
                                        THIS_ENTRY = LINE
-                               elif( LENLINE < 6 ):
+                               elif( LENLINE < 6 ): # Adds the rest of the 
fields to the device from the first line
                                        THIS_ENTRY.extend(LINE)
-                                       DFDATA_NORMALIZED.append(THIS_ENTRY)
+                                       if( len(THIS_ENTRY) == 6 ):
+                                               
DFDATA_NORMALIZED.append(THIS_ENTRY)
                                        THIS_ENTRY = []
                        for DFLIST in DFDATA_NORMALIZED:
                                TMP = DFLIST[4].replace('%', '')
                                DFLIST[4] = TMP
-#              print "NORMALIZED", DFDATA_NORMALIZED
 
                #compile mounted filesystem data with merged fstab and df data
                for MOUNT in MOUNTS: #load each mount line output into the 
ENTRY list
@@ -1238,6 +1238,7 @@
                #now add any unmounted filesystems
                UNMOUNTED = []
                ENTRY = []
+               SWAP = []
                for FSENTRY in FSTAB: #check each FSENTRY for unmounted devices
                        ENTRY = FSENTRY.split()
                        if( len(ENTRY) <> 6 ): #consider non-standard entries 
as not MATCHED
@@ -1250,7 +1251,6 @@
                                                break
                                if( MISSING ): #the fstab entry was not found 
in the list of mounted filesystems
                                        if( ENTRY[1].lower() == "swap" ): # If 
there is more than one swap device, the same free -k swap information is used 
for each one.
-                                               SWAP = []
                                                if( 
Core.getRegExSection('memory.txt', 'free -k', SWAP) ):
                                                        for LINE in SWAP: #swap 
sizes are in the memory.txt file, not df command
                                                                if 
LINE.startswith("Swap:"):

Reply via email to