commit sca-patterns-base for openSUSE:Factory

2023-11-30 Thread Source-Sync
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 2023-11-30 22:01:13

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.25432 (New)


Package is "sca-patterns-base"

Thu Nov 30 22:01:13 2023 rev:11 rq:1129865 version:1.6.0

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2023-09-01 14:20:19.362613033 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.25432/sca-patterns-base.changes
   2023-11-30 22:01:58.142491601 +0100
@@ -1,0 +2,6 @@
+Wed Nov 29 22:26:11 UTC 2023 - jason.rec...@suse.com
+
+- Changes in version 1.6.0
+  + Updates for ALP using new classes and modules (bsc#1217674)
+
+---

Old:

  sca-patterns-base-1.5.2.tar.gz

New:

  sca-patterns-base-1.6.0.tar.gz



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.oZUZyL/_old  2023-11-30 22:01:58.582507811 +0100
+++ /var/tmp/diff_new_pack.oZUZyL/_new  2023-11-30 22:01:58.586507958 +0100
@@ -19,12 +19,11 @@
 %define sca_common sca
 %define patdirbase %{_prefix}/lib/%{sca_common}
 %define patdir %{patdirbase}/patterns
-%define prodgrp sdp
 %define patuser root
 %define patgrp root
 
 Name:   sca-patterns-base
-Version:1.5.2
+Version:1.6.0
 Release:0
 Summary:Supportconfig Analysis Pattern Base Libraries
 License:GPL-2.0-only
@@ -34,6 +33,7 @@
 Requires:   bash
 Requires:   perl
 Requires:   python3-base
+Provides:   sca-patterns-template-gen2
 BuildArch:  noarch
 
 %description

++ sca-patterns-base-1.5.2.tar.gz -> sca-patterns-base-1.6.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sca-patterns-base-1.5.2/libraries/python/suse_base2.py 
new/sca-patterns-base-1.6.0/libraries/python/suse_base2.py
--- old/sca-patterns-base-1.5.2/libraries/python/suse_base2.py  1970-01-01 
01:00:00.0 +0100
+++ new/sca-patterns-base-1.6.0/libraries/python/suse_base2.py  2023-11-29 
23:30:30.125592584 +0100
@@ -0,0 +1,738 @@
+'''
+Supportconfig Analysis Library for SUSE python patterns
+
+Library of functions for creating python patterns specific to SUSE
+'''
+##
+#  Copyright (C) 2023 SUSE LLC
+##
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; version 2 of the License.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, see .
+#
+##
+__author__= 'Jason Record '
+__date_modified__ = '2023 Nov 13'
+__version__   = '2.0.0_dev10'
+
+import re
+import os
+import sys
+import suse_core2 as core
+import datetime
+import ast
+import json
+
+# Kernel version constants
+SLE9GA   = '2.6.5-7.97'
+SLE9SP0  = '2.6.5-7.97'
+SLE9SP1  = '2.6.5-7.139'
+SLE9SP2  = '2.6.5-7.191'
+SLE9SP3  = '2.6.5-7.244'
+SLE9SP4  = '2.6.5-7.308'
+SLE9SP5  = '2.6.5-8'
+SLE10GA  = '2.6.16.21-0.8'
+SLE10SP0 = '2.6.16.21-0.8'
+SLE10SP1 = '2.6.16.46-0.12'
+SLE10SP2 = '2.6.16.60-0.21'
+SLE10SP3 = '2.6.16.60-0.54.5'
+SLE10SP4 = '2.6.16.60-0.85.1'
+SLE10SP5 = '2.6.17'
+SLE11GA  = '2.6.27.19-5'
+SLE11SP0 = '2.6.27.19-5'
+SLE11SP1 = '2.6.32.12-0.7'
+SLE11SP2 = '3.0.13-0.27'
+SLE11SP3 = '3.0.76-0.11.1'
+SLE11SP4 = '3.0.101-0.63.1'
+SLE12GA  = '3.12.28-4'
+SLE12SP0 = '3.12.28-4'
+SLE12SP1 = '3.12.49-11.1'
+SLE12SP2 = '4.4.21-69'
+SLE12SP3 = '4.4.73-5.1'
+SLE12SP4 = '4.12.14-94.41'
+SLE12SP5 = '4.12.14-120.1'
+SLE15GA  = '4.12.14-23.1'
+SLE15SP0 = '4.12.14-23.1'
+SLE15SP1 = '4.12.14-195.1'
+SLE15SP2 = '5.3.18-22.2'
+SLE15SP3 = '5.3.18-57.3'
+SLE15SP4 = '5.14.21-150400.22.1'
+SLE15SP5 = '5.14.21-150500.46.4'
+SLE15SP6 = '5.999' #Update to actual version when/if applicable
+ALP1SP0  = '6.0' #Update to actual version when/if applicable
+
+def 

commit sca-patterns-base for openSUSE:Factory

2023-09-01 Thread Source-Sync
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 2023-09-01 14:19:32

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.1766 (New)


Package is "sca-patterns-base"

Fri Sep  1 14:19:32 2023 rev:10 rq:1108321 version:1.5.2

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2022-10-28 19:30:46.167004166 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.1766/sca-patterns-base.changes
2023-09-01 14:20:19.362613033 +0200
@@ -1,0 +2,10 @@
+Thu Aug 31 16:05:05 UTC 2023 - jason.rec...@suse.com
+
+- Changes to version 1.5.2
+  + Fixed SUSE.getRpmInfo to find the correct rpm.txt section (bsc#1210908)
+  + Changes to python/SUSE.py version 1.0.1
+- Changed name from getScInfo to getSCInfo
+- Fixed getSCInfo error on basic-environment.txt (bsc#1205826)
+- Updated SLES version constants
+
+---

Old:

  sca-patterns-base-1.5.1.tar.gz

New:

  sca-patterns-base-1.5.2.tar.gz



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.dpRAa3/_old  2023-09-01 14:20:20.306646726 +0200
+++ /var/tmp/diff_new_pack.dpRAa3/_new  2023-09-01 14:20:20.310646868 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sca-patterns-base
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 %define patgrp root
 
 Name:   sca-patterns-base
-Version:1.5.1
+Version:1.5.2
 Release:0
 Summary:Supportconfig Analysis Pattern Base Libraries
 License:GPL-2.0-only

++ sca-patterns-base-1.5.1.tar.gz -> sca-patterns-base-1.5.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.5.1/libraries/bash/SUSE.rc 
new/sca-patterns-base-1.5.2/libraries/bash/SUSE.rc
--- old/sca-patterns-base-1.5.1/libraries/bash/SUSE.rc  2021-08-16 
23:18:14.137905168 +0200
+++ new/sca-patterns-base-1.5.2/libraries/bash/SUSE.rc  2023-08-17 
00:37:35.315177939 +0200
@@ -1,5 +1,5 @@
 ##
-#  Copyright (C) 2014-2021 SUSE LINUX Products GmbH
+#  Copyright (C) 2014-2023 SUSE LINUX Products GmbH
 ##
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -17,11 +17,11 @@
 #  Authors/Contributors:
 # Jason Record 
 #
-#  Last Modified Date: 2021 Aug 16
+#  Last Modified Date: 2023 Jun 06
 #
 ##
 # Library:   SUSE.rc
-# Version:   0.1.6
+# Version:   0.1.7
 # Requires:  Core.rc
 # Description:   Provides global variables for SLE kernel versions and base 
 #information functions.
@@ -77,7 +77,7 @@
 declare -r SLE15SP1='4.12.14-195.1'
 declare -r SLE15SP2='5.3.18-22.2'
 declare -r SLE15SP3='5.3.18-57.3'
-declare -r SLE15SP4='5.994' #Update to actual version when/if applicable
+declare -r SLE15SP4='5.14.21-150400.22.1'
 declare -r SLE15SP5='5.995' #Update to actual version when/if applicable
 
 
@@ -179,7 +179,7 @@
 
printDebug '> getRpmInfo' "$RPM_INFO_NAME"
local TMP=''
-   getSection 'rpm.txt' '{NAME}' 1
+   getSection 'rpm.txt' '[0-9]{DISTRIBUTION}' 1
LINE=$(echo "$CONTENT" | egrep "^${RPM_INFO_NAME}[[:space:]]")
RPM_INFO_COUNT=$(echo "$LINE" | wc -l)
if (( RPM_INFO_COUNT > 1 ))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.5.1/libraries/perl/SDP/SUSE.pm 
new/sca-patterns-base-1.5.2/libraries/perl/SDP/SUSE.pm
--- old/sca-patterns-base-1.5.1/libraries/perl/SDP/SUSE.pm  2021-08-16 
23:18:15.753865110 +0200
+++ new/sca-patterns-base-1.5.2/libraries/perl/SDP/SUSE.pm  2023-08-17 
00:37:35.315177939 +0200
@@ -1,5 +1,5 @@
 ##
-#  Copyright (C) 2014-2021 SUSE LINUX Products GmbH
+#  Copyright (C) 2014-2023 SUSE LINUX Products GmbH
 ##
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -16,7 +16,7 @@
 #
 #  Authors/Contributors:
 # Jason Record 
-# Modified: 2021 Aug 16
+# Modified: 2023 Jun 06
 #
 #
 

commit sca-patterns-base for openSUSE:Factory

2022-10-28 Thread Source-Sync
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 2022-10-28 19:30:25

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.2275 (New)


Package is "sca-patterns-base"

Fri Oct 28 19:30:25 2022 rev:9 rq:1031613 version:1.5.1

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2021-11-05 22:58:42.688285098 +0100
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.2275/sca-patterns-base.changes
2022-10-28 19:30:46.167004166 +0200
@@ -1,0 +2,6 @@
+Wed Oct 26 19:12:21 UTC 2022 - jason.rec...@suse.com
+
+- Changes to version 1.5.1
+  + Fixed UnicodeDecodeError when reading files (bsc#1204723)
+
+---

Old:

  sca-patterns-base-1.5.0.tar.gz

New:

  sca-patterns-base-1.5.1.tar.gz



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.KXbVVu/_old  2022-10-28 19:30:46.691006794 +0200
+++ /var/tmp/diff_new_pack.KXbVVu/_new  2022-10-28 19:30:46.699006834 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sca-patterns-base
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,12 @@
 %define patgrp root
 
 Name:   sca-patterns-base
-Version:1.5.0
+Version:1.5.1
 Release:0
 Summary:Supportconfig Analysis Pattern Base Libraries
 License:GPL-2.0-only
-Group:  System/Monitoring
 URL:https://github.com/g23guy/sca-patterns-base
+Group:  System/Monitoring
 Source: %{name}-%{version}.tar.gz
 Requires:   bash
 Requires:   perl

++ sca-patterns-base-1.5.0.tar.gz -> sca-patterns-base-1.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.5.0/libraries/python/Core.py 
new/sca-patterns-base-1.5.1/libraries/python/Core.py
--- old/sca-patterns-base-1.5.0/libraries/python/Core.py2021-11-04 
22:59:21.457946104 +0100
+++ new/sca-patterns-base-1.5.1/libraries/python/Core.py2022-10-26 
21:13:42.551899311 +0200
@@ -4,7 +4,7 @@
 Core library of functions for creating and processing python patterns
 """
 ##
-#  Copyright (C) 2021 SUSE LLC
+#  Copyright (C) 2021,2022 SUSE LLC
 ##
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -23,7 +23,7 @@
 #David Hamner (ke7...@gmail.com)
 #Jason Record (jrec...@suse.com)
 #
-#  Modified: 2021 June 10
+#  Modified: 2022 Oct 26
 #
 ##
 
@@ -236,7 +236,7 @@
RESULT = False
 
try:
-   FILE = open(path + "/" + FILE_OPEN)
+   FILE = open(path + "/" + FILE_OPEN, "rt", errors='ignore')
except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
 
@@ -273,7 +273,7 @@
I = 0
 
try:
-   FILE = open(path + "/" + FILE_OPEN)
+   FILE = open(path + "/" + FILE_OPEN, "rt", errors='ignore')
except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
 
@@ -337,7 +337,7 @@
i = 0
global path
try:
-   FILE = open(path + "/" + FILE_OPEN)
+   FILE = open(path + "/" + FILE_OPEN, "rt", errors='ignore')
except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
SectionTag = re.compile(SECTION)
@@ -394,7 +394,7 @@
SectionName = ''
global path
try:
-   FILE = open(path + "/" + FILE_OPEN)
+   FILE = open(path + "/" + FILE_OPEN, "rt", errors='ignore')
except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
SectionTag = re.compile(SECTION)
@@ -450,7 +450,7 @@
SectionName = ''
global path
try:
-   FILE = open(path + "/" + FILE_OPEN)
+   FILE = open(path + "/" + FILE_OPEN, "rt", errors='ignore')
except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
SectionTag = re.compile(SECTION)

commit sca-patterns-base for openSUSE:Factory

2021-11-05 Thread Source-Sync
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-11-05 22:58:30

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.1890 (New)


Package is "sca-patterns-base"

Fri Nov  5 22:58:30 2021 rev:8 rq:929475 version:1.5.0

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2021-10-12 21:50:38.163981899 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.1890/sca-patterns-base.changes
2021-11-05 22:58:42.688285098 +0100
@@ -1,0 +2,6 @@
+Thu Nov  4 21:56:53 UTC 2021 - Jason Record 
+
+- Changes to updated version 1.5.0
+  + Converted to python3 (bsc#1191005, SLE-21579)
+
+---

Old:

  sca-patterns-base-1.3.3.tar.gz

New:

  sca-patterns-base-1.5.0.tar.gz



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.y6QXuv/_old  2021-11-05 22:58:44.540286237 +0100
+++ /var/tmp/diff_new_pack.y6QXuv/_new  2021-11-05 22:58:44.544286241 +0100
@@ -24,7 +24,7 @@
 %define patgrp root
 
 Name:   sca-patterns-base
-Version:1.3.3
+Version:1.5.0
 Release:0
 Summary:Supportconfig Analysis Pattern Base Libraries
 License:GPL-2.0-only
@@ -33,7 +33,7 @@
 Source: %{name}-%{version}.tar.gz
 Requires:   bash
 Requires:   perl
-Requires:   python-base
+Requires:   python3-base
 BuildArch:  noarch
 
 %description

++ sca-patterns-base-1.3.3.tar.gz -> sca-patterns-base-1.5.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.3.3/libraries/python/Core.py 
new/sca-patterns-base-1.5.0/libraries/python/Core.py
--- old/sca-patterns-base-1.3.3/libraries/python/Core.py2021-06-10 
21:35:02.370773202 +0200
+++ new/sca-patterns-base-1.5.0/libraries/python/Core.py2021-11-04 
22:59:21.457946104 +0100
@@ -121,7 +121,7 @@
global OVERALL
global OVERALL_INFO
global OTHER_LINKS
-   print "META_CLASS" + "=" + META_CLASS + "|" + "META_CATEGORY" + "=" + 
META_CATEGORY + "|" + "META_COMPONENT" + "=" + META_COMPONENT + "|" + 
"PATTERN_ID" + "=" + PATTERN_ID + "|"  + "PRIMARY_LINK" + "=" + PRIMARY_LINK + 
"|" + "OVERALL" + "=" + str(OVERALL) + "|"  + "OVERALL_INFO" + "=" + 
OVERALL_INFO + "|" + OTHER_LINKS
+   print("META_CLASS" + "=" + META_CLASS + "|" + "META_CATEGORY" + "=" + 
META_CATEGORY + "|" + "META_COMPONENT" + "=" + META_COMPONENT + "|" + 
"PATTERN_ID" + "=" + PATTERN_ID + "|"  + "PRIMARY_LINK" + "=" + PRIMARY_LINK + 
"|" + "OVERALL" + "=" + str(OVERALL) + "|"  + "OVERALL_INFO" + "=" + 
OVERALL_INFO + "|" + OTHER_LINKS)
 
 def updateStatus(overAll, overAllInfo):
"""
@@ -237,7 +237,7 @@
 
try:
FILE = open(path + "/" + FILE_OPEN)
-   except Exception, error:
+   except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
 
for LINE in FILE:
@@ -274,7 +274,7 @@
 
try:
FILE = open(path + "/" + FILE_OPEN)
-   except Exception, error:
+   except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
 
SECTION = re.compile('^#==\[')
@@ -297,7 +297,7 @@
 
try:
FILE = os.stat(path + "/" + FILE_OPEN)
-   except Exception, error:
+   except Exception as error:
 #  print "Error os.stat(" + str(FILE_OPEN) + "): " + str(error)
return False
 
@@ -338,7 +338,7 @@
global path
try:
FILE = open(path + "/" + FILE_OPEN)
-   except Exception, error:
+   except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
SectionTag = re.compile(SECTION)
CommentedLine = re.compile('^#|^\s+#')
@@ -395,7 +395,7 @@
global path
try:
FILE = open(path + "/" + FILE_OPEN)
-   except Exception, error:
+   except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
SectionTag = re.compile(SECTION)
CommentedLine = re.compile('^#|^\s+#')
@@ -451,7 +451,7 @@
global path
try:
FILE = open(path + "/" + FILE_OPEN)
-   except Exception, error:
+   except Exception as error:
updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
SectionTag = re.compile(SECTION)

commit sca-patterns-base for openSUSE:Factory

2021-10-12 Thread Source-Sync
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-10-12 21:49:21

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.2443 (New)


Package is "sca-patterns-base"

Tue Oct 12 21:49:21 2021 rev:7 rq:923090 version:1.3.3

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2021-08-18 08:57:13.470882304 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.2443/sca-patterns-base.changes
2021-10-12 21:50:38.163981899 +0200
@@ -1,0 +2,5 @@
+Mon Oct  4 14:56:52 UTC 2021 - Jason Record 
+
+- Changed Requires python to python-base (bsc#1191199)
+
+---



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.hHYGjf/_old  2021-10-12 21:50:38.651982598 +0200
+++ /var/tmp/diff_new_pack.hHYGjf/_new  2021-10-12 21:50:38.655982603 +0200
@@ -33,7 +33,7 @@
 Source: %{name}-%{version}.tar.gz
 Requires:   bash
 Requires:   perl
-Requires:   python
+Requires:   python-base
 BuildArch:  noarch
 
 %description

++ sca-patterns-base-1.3.3.tar.gz ++


commit sca-patterns-base for openSUSE:Factory

2021-08-18 Thread Source-Sync
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-08-18 08:56:22

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.1899 (New)


Package is "sca-patterns-base"

Wed Aug 18 08:56:22 2021 rev:6 rq:912711 version:1.3.3

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2021-06-11 00:19:45.689430316 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.1899/sca-patterns-base.changes
2021-08-18 08:57:13.470882304 +0200
@@ -1,0 +2,5 @@
+Mon Aug 16 21:18:29 UTC 2021 - Jason Record 
+
+- Updated kernel version constants for all SUSE libraries (bsc#1189483)
+
+---



Other differences:
--
++ sca-patterns-base-1.3.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.3.3/libraries/bash/SUSE.rc 
new/sca-patterns-base-1.3.3/libraries/bash/SUSE.rc
--- old/sca-patterns-base-1.3.3/libraries/bash/SUSE.rc  2021-05-18 
18:05:59.049018060 +0200
+++ new/sca-patterns-base-1.3.3/libraries/bash/SUSE.rc  2021-08-16 
23:18:14.137905168 +0200
@@ -17,11 +17,11 @@
 #  Authors/Contributors:
 # Jason Record 
 #
-#  Last Modified Date: 2021 May 18
+#  Last Modified Date: 2021 Aug 16
 #
 ##
 # Library:   SUSE.rc
-# Version:   0.1.5
+# Version:   0.1.6
 # Requires:  Core.rc
 # Description:   Provides global variables for SLE kernel versions and base 
 #information functions.
@@ -43,30 +43,43 @@
 # GLOBAL VARIABLES
 ##
 
+# Kernel version constants
 declare -r SLE9GA='2.6.5-7.97'
+declare -r SLE9SP0='2.6.5-7.97'
 declare -r SLE9SP1='2.6.5-7.139'
 declare -r SLE9SP2='2.6.5-7.191'
 declare -r SLE9SP3='2.6.5-7.244'
 declare -r SLE9SP4='2.6.5-7.308'
-declare -r SLE9SP5='2.6.5-8' #Update to actual version when applicable
+declare -r SLE9SP5='2.6.5-8'
 declare -r SLE10GA='2.6.16.21-0.8'
+declare -r SLE10SP0='2.6.16.21-0.8'
 declare -r SLE10SP1='2.6.16.46-0.12'
 declare -r SLE10SP2='2.6.16.60-0.21'
 declare -r SLE10SP3='2.6.16.60-0.54.5'
 declare -r SLE10SP4='2.6.16.60-0.85.1'
-declare -r SLE10SP5='2.6.17' #Update to actual version when applicable
+declare -r SLE10SP5='2.6.17'
 declare -r SLE11GA='2.6.27.19-5'
+declare -r SLE11SP0='2.6.27.19-5'
 declare -r SLE11SP1='2.6.32.12-0.7'
 declare -r SLE11SP2='3.0.13-0.27'
 declare -r SLE11SP3='3.0.76-0.11.1'
 declare -r SLE11SP4='3.0.101-0.63.1'
-declare -r SLE11SP5='3.1' #Update to actual version when applicable
-declare -r SLE12GA='3.12.28-4' #Update to actual version when applicable
+declare -r SLE11SP5='3.1' #Update to actual version when/if applicable
+declare -r SLE12GA='3.12.28-4'
+declare -r SLE12SP0='3.12.28-4'
 declare -r SLE12SP1='3.12.49-11.1'
-declare -r SLE12SP2='4.4.21-69' #Update to actual version when applicable
-declare -r SLE12SP3='4.4.68-2' #Beta3: Update to actual version when applicable
-declare -r SLE12SP4='5.999' #Update to actual version when applicable
-declare -r SLE12SP5='6.999' #Update to actual version when applicable
+declare -r SLE12SP2='4.4.21-69'
+declare -r SLE12SP3='4.4.73-5.1'
+declare -r SLE12SP4='4.12.14-94.41'
+declare -r SLE12SP5='4.12.14-120.1'
+declare -r SLE15GA='4.12.14-23.1'
+declare -r SLE15SP0='4.12.14-23.1'
+declare -r SLE15SP1='4.12.14-195.1'
+declare -r SLE15SP2='5.3.18-22.2'
+declare -r SLE15SP3='5.3.18-57.3'
+declare -r SLE15SP4='5.994' #Update to actual version when/if applicable
+declare -r SLE15SP5='5.995' #Update to actual version when/if applicable
+
 
 SC_INFO_VERSION=''
 SC_INFO_SCRIPTDATE=''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.3.3/libraries/perl/SDP/SUSE.pm 
new/sca-patterns-base-1.3.3/libraries/perl/SDP/SUSE.pm
--- old/sca-patterns-base-1.3.3/libraries/perl/SDP/SUSE.pm  2021-05-18 
18:05:59.049018060 +0200
+++ new/sca-patterns-base-1.3.3/libraries/perl/SDP/SUSE.pm  2021-08-16 
23:18:15.753865110 +0200
@@ -15,8 +15,8 @@
 #  along with this program; if not, see .
 #
 #  Authors/Contributors:
-# Jason Record (jason.rec...@suse.com)
-# Modified: 2021 May 13
+# Jason Record 
+# Modified: 2021 Aug 16
 #
 #
 ##
@@ -50,7 +50,7 @@
 
 =over 5
 
-=item SLE9GA, SLE9SP1, SLE9SP2, SLE9SP3, SLE9SP4, SLE9SP5, SLE10GA, SLE10SP1, 
SLE10SP2, SLE10SP3, SLE10SP4, 

commit sca-patterns-base for openSUSE:Factory

2021-06-10 Thread Source-Sync
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-06-11 00:19:16

Comparing /work/SRC/openSUSE:Factory/sca-patterns-base (Old)
 and  /work/SRC/openSUSE:Factory/.sca-patterns-base.new.32437 (New)


Package is "sca-patterns-base"

Fri Jun 11 00:19:16 2021 rev:5 rq:899345 version:1.3.3

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2021-05-20 19:25:20.213874440 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.32437/sca-patterns-base.changes
   2021-06-11 00:19:45.689430316 +0200
@@ -1,0 +2,6 @@
+Thu Jun 10 19:33:02 UTC 2021 - Jason Record 
+
+- Additions to version 1.3.3
+  + Added Core.loadFullFile for sectionless parsing (bsc#1187194)
+
+---
@@ -4 +10 @@
-- Addtions to version 1.3.2
+- Additions to version 1.3.2

Old:

  sca-patterns-base-1.3.2.tar.gz

New:

  sca-patterns-base-1.3.3.tar.gz



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.h41NF8/_old  2021-06-11 00:19:46.049430941 +0200
+++ /var/tmp/diff_new_pack.h41NF8/_new  2021-06-11 00:19:46.049430941 +0200
@@ -24,7 +24,7 @@
 %define patgrp root
 
 Name:   sca-patterns-base
-Version:1.3.2
+Version:1.3.3
 Release:0
 Summary:Supportconfig Analysis Pattern Base Libraries
 License:GPL-2.0-only

++ sca-patterns-base-1.3.2.tar.gz -> sca-patterns-base-1.3.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sca-patterns-base-1.3.2/libraries/python/Core.py 
new/sca-patterns-base-1.3.3/libraries/python/Core.py
--- old/sca-patterns-base-1.3.2/libraries/python/Core.py2021-03-02 
23:56:40.437329507 +0100
+++ new/sca-patterns-base-1.3.3/libraries/python/Core.py2021-06-10 
21:35:02.370773202 +0200
@@ -4,7 +4,7 @@
 Core library of functions for creating and processing python patterns
 """
 ##
-#  Copyright (C) 2014 SUSE LLC
+#  Copyright (C) 2021 SUSE LLC
 ##
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -23,7 +23,7 @@
 #David Hamner (ke7...@gmail.com)
 #Jason Record (jrec...@suse.com)
 #
-#  Modified: 2014 Sep 17
+#  Modified: 2021 June 10
 #
 ##
 
@@ -212,6 +212,42 @@
return path
 
 
+def loadFullFile(FILE_OPEN, CONTENT):
+   """
+   Loads the entire supportconfig file, FILE_OPEN, into CONTENT.
+
+   Args:   FILE_OPEN (String) - The supportconfig filename to open
+   CONTENT (List) - Each line in the file
+   Returns:True or False
+   True - FILE_OPEN was found and loaded 
into CONTENT
+   False - FILE_OPEN was empty
+   Example:
+
+   FILE_OPEN = "ha.txt"
+   CONTENT = []
+   if Core.loadFullFile(FILE_OPEN, CONTENT):
+   for LINE in CONTENT:
+   if "some error" in LINE:
+   return True
+   else:
+   Core.updateStatus(Core.ERROR, "ERROR: Empty file - " + 
FILE_OPEN)
+   """
+   global path
+   RESULT = False
+
+   try:
+   FILE = open(path + "/" + FILE_OPEN)
+   except Exception, error:
+   updateStatus(ERROR, "ERROR: Cannot open " + FILE_OPEN + ": " + 
str(error))
+
+   for LINE in FILE:
+   LINE = LINE.strip("\n")
+   CONTENT.append(LINE)
+   RESULT = True
+
+   FILE.close()
+   return RESULT
+
 def listSections(FILE_OPEN, CONTENT):
"""
Extracts all section names from FILE_OPEN and adds them to CONTENT.


commit sca-patterns-base for openSUSE:Factory

2021-05-20 Thread Source-Sync
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-20 19:24:57

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"

Thu May 20 19:24:57 2021 rev:4 rq:894400 version:1.3.2

Changes:

--- /work/SRC/openSUSE:Factory/sca-patterns-base/sca-patterns-base.changes  
2021-05-05 20:41:05.106631893 +0200
+++ 
/work/SRC/openSUSE:Factory/.sca-patterns-base.new.2988/sca-patterns-base.changes
2021-05-20 19:25:20.213874440 +0200
@@ -1,0 +2,10 @@
+Tue May 18 16:03:25 UTC 2021 - Jason Record 
+
+- Addtions to version 1.3.2
+  + Added SUSE.getNetworkInterfaces needed for bsc#1144162
+  + Updated documentation for SUSE.compareKernel
+- Removed Novell/OES references from libraries (bsc#1186034)
+- Changed SUSE.securityAnnouncementPackageCheck in Python to warnings
+  and only critical for critical announcements
+
+---

Old:

  sca-patterns-base-1.3.1.tar.gz

New:

  sca-patterns-base-1.3.2.tar.gz



Other differences:
--
++ sca-patterns-base.spec ++
--- /var/tmp/diff_new_pack.3CXfAl/_old  2021-05-20 19:25:20.649872652 +0200
+++ /var/tmp/diff_new_pack.3CXfAl/_new  2021-05-20 19:25:20.653872636 +0200
@@ -24,7 +24,7 @@
 %define patgrp root
 
 Name:   sca-patterns-base
-Version:1.3.1
+Version:1.3.2
 Release:0
 Summary:Supportconfig Analysis Pattern Base Libraries
 License:GPL-2.0-only

++ sca-patterns-base-1.3.1.tar.gz -> sca-patterns-base-1.3.2.tar.gz ++
 2305 lines of diff (skipped)


commit sca-patterns-base for openSUSE:Factory

2021-05-05 Thread Source-Sync
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 
+
+- 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.py2020-11-06 
23:32:19.517254469 +0100
+++ new/sca-patterns-base-1.3.1/libraries/python/SUSE.py2021-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 (jason.rec...@suse.com)
 #David Hamner (ke7...@gmail.com)
 #
-#  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) ):