Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libstorage-ng for openSUSE:Factory 
checked in at 2022-01-09 22:50:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old)
 and      /work/SRC/openSUSE:Factory/.libstorage-ng.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libstorage-ng"

Sun Jan  9 22:50:08 2022 rev:144 rq:945146 version:4.4.72

Changes:
--------
--- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes      
2022-01-07 12:45:08.599793881 +0100
+++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.1892/libstorage-ng.changes    
2022-01-09 22:50:27.851299574 +0100
@@ -1,0 +2,14 @@
+Sun Jan 9 15:09:21 UTC 2022 - opensuse-packag...@opensuse.org
+
+- Translated using Weblate (Portuguese (Brazil)) (bsc#1149754)
+- 4.4.72
+
+--------------------------------------------------------------------
+Fri Jan 7 16:03:07 UTC 2022 - aschn...@suse.com
+
+- merge gh#openSUSE/libstorage-ng#855
+- made some memory handling exception safe
+- coding style
+- 4.4.71
+
+--------------------------------------------------------------------

Old:
----
  libstorage-ng-4.4.70.tar.xz

New:
----
  libstorage-ng-4.4.72.tar.xz

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

Other differences:
------------------
++++++ libstorage-ng.spec ++++++
--- /var/tmp/diff_new_pack.VTrXwO/_old  2022-01-09 22:50:28.375300041 +0100
+++ /var/tmp/diff_new_pack.VTrXwO/_new  2022-01-09 22:50:28.379300045 +0100
@@ -18,7 +18,7 @@
 
 %define libname %{name}1
 Name:           libstorage-ng
-Version:        4.4.70
+Version:        4.4.72
 Release:        0
 Summary:        Library for storage management
 License:        GPL-2.0-only

++++++ libstorage-ng-4.4.70.tar.xz -> libstorage-ng-4.4.72.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.4.70/VERSION 
new/libstorage-ng-4.4.72/VERSION
--- old/libstorage-ng-4.4.70/VERSION    2022-01-05 12:30:11.000000000 +0100
+++ new/libstorage-ng-4.4.72/VERSION    2022-01-09 19:12:34.000000000 +0100
@@ -1 +1 @@
-4.4.70
+4.4.72
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.4.70/po/pt_BR.po 
new/libstorage-ng-4.4.72/po/pt_BR.po
--- old/libstorage-ng-4.4.70/po/pt_BR.po        2022-01-05 12:30:11.000000000 
+0100
+++ new/libstorage-ng-4.4.72/po/pt_BR.po        2022-01-09 19:12:34.000000000 
+0100
@@ -12,7 +12,7 @@
 "Project-Id-Version: YaST (@memory@)\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2021-12-20 12:10+0100\n"
-"PO-Revision-Date: 2021-10-20 20:53+0000\n"
+"PO-Revision-Date: 2022-01-09 18:12+0000\n"
 "Last-Translator: Rodrigo Macedo <rmsolucoeseminformat...@gmail.com>\n"
 "Language-Team: Portuguese (Brazil) <https://l10n.opensuse.org/projects/";
 "libstorage/ng-master/pt_BR/>\n"
@@ -21,7 +21,7 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=n > 1;\n"
-"X-Generator: Weblate 4.8.1\n"
+"X-Generator: Weblate 4.9.1\n"
 
 msgid ""
 "\n"
@@ -369,15 +369,15 @@
 #. %1$s is replaced by file system name (e.g. ext4),
 #. %2$s is replaced by one or more devices (e.g /dev/sda1 (1.00 GiB) and
 #. /dev/sdb2 (1.00 GiB)),
-#, fuzzy, c-format
+#, c-format
 msgid "Clear label of %1$s on %2$s"
-msgstr "Definir r??tulo de %1$s em %2$s para %3$s"
+msgstr "Limpar r??tulo de %1$s em %2$s"
 
 #. TRANSLATORS: displayed before action,
 #. %1$s is replaced by partition name (e.g. /dev/sda1),
-#, fuzzy, c-format
+#, c-format
 msgid "Clear label of partition %1$s"
-msgstr "Limpar indicador de inicializa????o da parti????o %1$s"
+msgstr "Limpar r??tulo da parti????o %1$s"
 
 #. TRANSLATORS: displayed before action,
 #. %1$s is replaced by partition name (e.g. /dev/sda1)
@@ -409,15 +409,15 @@
 #. %1$s is replaced by file system name (e.g. ext4),
 #. %2$s is replaced by one or more devices (e.g /dev/sda1 (1.00 GiB) and
 #. /dev/sdb2 (1.00 GiB)),
-#, fuzzy, c-format
+#, c-format
 msgid "Clearing label of %1$s on %2$s"
-msgstr "Definindo r??tulo de %1$s em %2$s para %3$s"
+msgstr "Limpando r??tulo de %1$s em %2$s"
 
 #. TRANSLATORS: displayed during action,
 #. %1$s is replaced by partition name (e.g. /dev/sda1),
-#, fuzzy, c-format
+#, c-format
 msgid "Clearing label of partition %1$s"
-msgstr "Limpando indicador de inicializa????o da parti????o %1$s"
+msgstr "Limpando r??tulo da parti????o %1$s"
 
 #. TRANSLATORS: displayed during action,
 #. %1$s is replaced by partition name (e.g. /dev/sda1)
@@ -1666,13 +1666,14 @@
 #. %1$s is replaced by the filesystem type (e.g. ext4),
 #. %2$s is replaced by the partition table type (e.g. GPT),
 #. %3$s is replaced by the device name (e.g. /dev/sda)
-#, fuzzy, c-format
+#, c-format
 msgid ""
 "Detected a %1$s file system next to a partition table of type %2$s on the\n"
 "device %3$s. The file system will be ignored."
 msgstr ""
-"Detectou um sistema de arquivos ao lado de uma tabela de parti????es no\n"
-"dispositivo %1$s. O sistema de arquivos ser?? ignorado."
+"Detectou um sistema de arquivos %1$s pr??ximo a uma tabela de parti????o do "
+"tipo %2$s no\n"
+"dispositivo %3$s. O sistema de arquivos ser?? ignorado."
 
 #. TRANSLATORS: Error message displayed during probing,
 #. %1$s is replaced by the partition table type (e.g. GPT),
@@ -1704,6 +1705,8 @@
 "Detected an unsupported file system of type %1$s on the\n"
 "device %2$s."
 msgstr ""
+"Detectado um sistema de arquivos incompat??vel do tipo %1$s no\n"
+"dispositivo %2$s."
 
 #. TRANSLATORS: Error message displayed during probing,
 #. %1$s is replaced by the partition table type (e.g. BSD),
@@ -1713,6 +1716,8 @@
 "Detected an unsupported partition table of type %1$s on the\n"
 "device %2$s."
 msgstr ""
+"Detectada uma tabela de parti????o n??o suportada do tipo %1$s no\n"
+"dispositivo %2$s."
 
 #. TRANSLATORS: name of partition type
 msgid "Diagnostics Partition"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.4.70/storage/Action.h 
new/libstorage-ng-4.4.72/storage/Action.h
--- old/libstorage-ng-4.4.70/storage/Action.h   2022-01-05 12:30:11.000000000 
+0100
+++ new/libstorage-ng-4.4.72/storage/Action.h   2022-01-09 19:12:34.000000000 
+0100
@@ -45,7 +45,7 @@
         * An action can either affect a device or a holder. Thus either sid or 
sid_pair
         * is valid.
         */
-       class Base
+       class Base : private boost::noncopyable
        {
 
        public:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libstorage-ng-4.4.70/storage/CompoundAction/Generator.cc 
new/libstorage-ng-4.4.72/storage/CompoundAction/Generator.cc
--- old/libstorage-ng-4.4.70/storage/CompoundAction/Generator.cc        
2022-01-05 12:30:11.000000000 +0100
+++ new/libstorage-ng-4.4.72/storage/CompoundAction/Generator.cc        
2022-01-09 19:12:34.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) [2017-2021] SUSE LLC
+ * Copyright (c) [2017-2022] SUSE LLC
  *
  * All Rights Reserved.
  *
@@ -43,13 +43,14 @@
     vector<shared_ptr<CompoundAction>>
     CompoundAction::Generator::generate() const
     {
-       vector<CompoundAction*> compound_actions;
+       vector<shared_ptr<CompoundAction>> compound_actions;
 
        for (const Action::Base* action : actiongraph->get_commit_actions())
        {
            pair<const Device*, CompoundAction::Impl::Type> meta_device = 
get_meta_device(action);
 
-           auto compound_action = find_by_target_device(compound_actions, 
meta_device.first, meta_device.second);
+           shared_ptr<CompoundAction> compound_action = 
find_by_target_device(compound_actions, meta_device.first,
+                                                                              
meta_device.second);
 
            if (compound_action)
            {
@@ -57,7 +58,7 @@
            }
            else
            {
-               compound_action = new CompoundAction(actiongraph);
+               compound_action = make_shared<CompoundAction>(actiongraph);
                
compound_action->get_impl().set_target_device(meta_device.first);
                compound_action->get_impl().set_type(meta_device.second);
                compound_action->get_impl().add_commit_action(action);
@@ -65,10 +66,7 @@
            }
        }
 
-       vector<shared_ptr<CompoundAction>> ret;
-       for (CompoundAction* compound_action : compound_actions)
-           ret.push_back(shared_ptr<CompoundAction>(compound_action));
-       return ret;
+       return compound_actions;
     }
 
 
@@ -156,21 +154,20 @@
     }
 
 
-    CompoundAction*
-    CompoundAction::Generator::find_by_target_device(const 
vector<CompoundAction*>& compound_actions,
+    shared_ptr<CompoundAction>
+    CompoundAction::Generator::find_by_target_device(const 
vector<shared_ptr<CompoundAction>>& compound_actions,
                                                     const Device* device, 
CompoundAction::Impl::Type type) const
     {
-       auto begin = compound_actions.begin();
-       auto end = compound_actions.end();
+       vector<shared_ptr<CompoundAction>>::const_iterator it =
+           find_if(compound_actions.begin(), compound_actions.end(),
+               [device, type](shared_ptr<const CompoundAction> a) -> bool {
+                   return a->get_target_device() == device && 
a->get_impl().get_type() == type;
+               });
 
-       auto it = find_if(begin, end, [device, type](const CompoundAction* a) 
-> bool {
-           return a->get_target_device() == device && a->get_impl().get_type() 
== type;
-       });
-
-       if (it != end)
-           return *it;
-       else
+       if (it == compound_actions.end())
            return nullptr;
+
+       return *it;
     }
 
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libstorage-ng-4.4.70/storage/CompoundAction/Generator.h 
new/libstorage-ng-4.4.72/storage/CompoundAction/Generator.h
--- old/libstorage-ng-4.4.70/storage/CompoundAction/Generator.h 2022-01-05 
12:30:11.000000000 +0100
+++ new/libstorage-ng-4.4.72/storage/CompoundAction/Generator.h 2022-01-09 
19:12:34.000000000 +0100
@@ -50,8 +50,8 @@
 
        pair<const Device*, CompoundAction::Impl::Type> get_meta_device(const 
Action::Base* action) const;
 
-       CompoundAction* find_by_target_device(const vector<CompoundAction*>& 
compound_actions,
-                                             const Device* device, 
CompoundAction::Impl::Type type) const;
+       shared_ptr<CompoundAction> find_by_target_device(const 
vector<shared_ptr<CompoundAction>>& compound_actions,
+                                                        const Device* device, 
CompoundAction::Impl::Type type) const;
 
        const Actiongraph* actiongraph = nullptr;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.4.70/storage/StorageImpl.cc 
new/libstorage-ng-4.4.72/storage/StorageImpl.cc
--- old/libstorage-ng-4.4.70/storage/StorageImpl.cc     2022-01-05 
12:30:11.000000000 +0100
+++ new/libstorage-ng-4.4.72/storage/StorageImpl.cc     2022-01-09 
19:12:34.000000000 +0100
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) [2014-2015] Novell, Inc.
- * Copyright (c) [2016-2021] SUSE LLC
+ * Copyright (c) [2016-2022] SUSE LLC
  *
  * All Rights Reserved.
  *
@@ -450,14 +450,14 @@
     const Actiongraph*
     Storage::Impl::calculate_actiongraph()
     {
-       actiongraph.reset();    // free old actiongraph before generating new 
to avoid memory peak
+       actiongraph = nullptr;  // free old actiongraph before generating new 
to avoid memory peak
 
-       Actiongraph* tmp = new Actiongraph(storage, get_system(), 
get_staging());
+       unique_ptr<Actiongraph> tmp = make_unique<Actiongraph>(storage, 
get_system(), get_staging());
        tmp->generate_compound_actions();
 
-       actiongraph.reset(tmp);
+       actiongraph = std::move(tmp);
 
-       return tmp;
+       return actiongraph.get();
     }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libstorage-ng-4.4.70/storage/SystemInfo/CmdLsattr.h 
new/libstorage-ng-4.4.72/storage/SystemInfo/CmdLsattr.h
--- old/libstorage-ng-4.4.70/storage/SystemInfo/CmdLsattr.h     2022-01-05 
12:30:11.000000000 +0100
+++ new/libstorage-ng-4.4.72/storage/SystemInfo/CmdLsattr.h     2022-01-09 
19:12:34.000000000 +0100
@@ -54,7 +54,7 @@
        string mount_point;
        string path;
 
-       bool nocow;
+       bool nocow = false;
 
     };
 

Reply via email to