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 <jason.rec...@suse.com>
+
+- 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.py        2021-03-02 
23:56:40.437329507 +0100
+++ new/sca-patterns-base-1.3.3/libraries/python/Core.py        2021-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.

Reply via email to