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 2026-03-05 17:12:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old) and /work/SRC/openSUSE:Factory/.libstorage-ng.new.561 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstorage-ng" Thu Mar 5 17:12:34 2026 rev:330 rq:1336318 version:4.5.305 Changes: -------- --- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes 2026-02-26 18:49:25.815466822 +0100 +++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.561/libstorage-ng.changes 2026-03-05 17:12:53.381017234 +0100 @@ -1,0 +2,14 @@ +Wed Mar 4 07:08:59 UTC 2026 - [email protected] + +- Translated using Weblate (Swedish) (bsc#1149754) +- 4.5.305 + +-------------------------------------------------------------------- +Mon Mar 2 15:43:17 UTC 2026 - [email protected] + +- merge gh#openSUSE/libstorage-ng#1061 +- prefer vector over list +- avoid shadowing local variables +- 4.5.304 + +-------------------------------------------------------------------- Old: ---- libstorage-ng-4.5.303.tar.xz New: ---- libstorage-ng-4.5.305.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstorage-ng.spec ++++++ --- /var/tmp/diff_new_pack.Kz4ldD/_old 2026-03-05 17:12:54.833077590 +0100 +++ /var/tmp/diff_new_pack.Kz4ldD/_new 2026-03-05 17:12:54.837077756 +0100 @@ -18,7 +18,7 @@ %define libname %{name}1 Name: libstorage-ng -Version: 4.5.303 +Version: 4.5.305 Release: 0 Summary: Library for storage management License: GPL-2.0-only ++++++ libstorage-ng-4.5.303.tar.xz -> libstorage-ng-4.5.305.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/VERSION new/libstorage-ng-4.5.305/VERSION --- old/libstorage-ng-4.5.303/VERSION 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/VERSION 2026-03-04 11:04:17.000000000 +0100 @@ -1 +1 @@ -4.5.303 +4.5.305 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/po/sv.po new/libstorage-ng-4.5.305/po/sv.po --- old/libstorage-ng-4.5.303/po/sv.po 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/po/sv.po 2026-03-04 11:04:17.000000000 +0100 @@ -10,8 +10,8 @@ "Project-Id-Version: YaST (@memory@)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-01-29 14:48+0100\n" -"PO-Revision-Date: 2025-07-22 15:01+0000\n" -"Last-Translator: Julia Faltenbacher <[email protected]>\n" +"PO-Revision-Date: 2026-03-04 10:04+0000\n" +"Last-Translator: Luna Jernberg <[email protected]>\n" "Language-Team: Swedish <https://l10n.opensuse.org/projects/libstorage/ng-" "master/sv/>\n" "Language: sv\n" @@ -19,7 +19,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 5.12.2\n" +"X-Generator: Weblate 5.16.1\n" msgid "" "\n" @@ -1997,7 +1997,7 @@ #. TRANSLATORS: name of object msgid "Erofs" -msgstr "" +msgstr "Erofs" #. TRANSLATORS: name of object msgid "Ext2" @@ -3386,7 +3386,7 @@ #. TRANSLATORS: name of object msgid "Squashfs" -msgstr "" +msgstr "Squashfs" #. TRANSLATORS: name of object msgid "Stray Block Device" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/CmdBlkid.cc new/libstorage-ng-4.5.305/storage/SystemInfo/CmdBlkid.cc --- old/libstorage-ng-4.5.303/storage/SystemInfo/CmdBlkid.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/CmdBlkid.cc 2026-03-04 11:04:17.000000000 +0100 @@ -84,11 +84,11 @@ continue; string device = string(line, 0, pos); - list<string> l = split_line(string(line, pos + 1)); + vector<string> l = split_line(string(line, pos + 1)); Entry entry; - const map<string, string> m = makeMap(l, "=", "\""); + const map<string, string> m = make_map(l, "=", "\""); map<string, string>::const_iterator it1 = m.find("TYPE"); if (it1 != m.end()) @@ -181,10 +181,10 @@ } - list<string> - Blkid::split_line( const string & line ) + vector<string> + Blkid::split_line(const string& line) { - list<string> result; + vector<string> result; string::size_type start = 0; const string::size_type len = line.length(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/CmdBlkid.h new/libstorage-ng-4.5.305/storage/SystemInfo/CmdBlkid.h --- old/libstorage-ng-4.5.303/storage/SystemInfo/CmdBlkid.h 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/CmdBlkid.h 2026-03-04 11:04:17.000000000 +0100 @@ -27,7 +27,6 @@ #include <string> #include <map> -#include <list> #include <vector> #include <optional> @@ -40,7 +39,6 @@ { using std::string; using std::map; - using std::list; using std::vector; @@ -111,7 +109,7 @@ bool any_bcache() const; bool any_btrfs() const; - static list<string> split_line( const string & line ); + static vector<string> split_line(const string& line); private: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/CmdDmsetup.cc new/libstorage-ng-4.5.305/storage/SystemInfo/CmdDmsetup.cc --- old/libstorage-ng-4.5.303/storage/SystemInfo/CmdDmsetup.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/CmdDmsetup.cc 2026-03-04 11:04:17.000000000 +0100 @@ -50,12 +50,12 @@ { for (const string& line : lines) { - list<string> sl = splitString(line, "/"); + vector<string> sl = split_string(line, "/"); if (sl.size() >= 6) { Entry entry; - list<string>::const_iterator ci = sl.begin(); + vector<string>::const_iterator ci = sl.begin(); string name = *ci++; unsigned int major, minor; @@ -127,8 +127,7 @@ string name = line.substr(0, pos); - list<string> tmp = splitString(line.substr(pos + 1)); - vector<string> params = vector<string>(tmp.begin(), tmp.end()); + vector<string> params = split_string(line.substr(pos + 1)); if (params.size() < 3) ST_THROW(Exception("failed to parse dmsetup table output")); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/CmdMultipath.cc new/libstorage-ng-4.5.305/storage/SystemInfo/CmdMultipath.cc --- old/libstorage-ng-4.5.303/storage/SystemInfo/CmdMultipath.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/CmdMultipath.cc 2026-03-04 11:04:17.000000000 +0100 @@ -86,7 +86,7 @@ string name = extractNthWord(0, line); - if(name.empty()) + if (name.empty()) { ++it1; continue; @@ -96,10 +96,10 @@ bool has_alias = boost::starts_with(extractNthWord(1, line), "("); - list<string> tmp = splitString(extractNthWord(has_alias ? 3 : 2, line, true), ","); - if (tmp.size() >= 2) + vector<string> tmp1 = split_string(extractNthWord(has_alias ? 3 : 2, line, true), ","); + if (tmp1.size() >= 2) { - list<string>::const_iterator it2 = tmp.begin(); + vector<string>::const_iterator it2 = tmp1.begin(); entry.vendor = boost::trim_copy(*it2++, locale::classic()); entry.model = boost::trim_copy(*it2++, locale::classic()); } @@ -116,9 +116,9 @@ if (regex_search(*it1, lun)) { - string tmp = it1->substr(5); - y2mil("mp element:" << tmp); - string dev = "/dev/" + extractNthWord(1, tmp); + string tmp2 = it1->substr(5); + y2mil("mp element:" << tmp2); + string dev = "/dev/" + extractNthWord(1, tmp2); if (find(entry.devices.begin(), entry.devices.end(), dev) == entry.devices.end()) entry.devices.push_back(dev); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/CmdParted.cc new/libstorage-ng-4.5.305/storage/SystemInfo/CmdParted.cc --- old/libstorage-ng-4.5.303/storage/SystemInfo/CmdParted.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/CmdParted.cc 2026-03-04 11:04:17.000000000 +0100 @@ -177,12 +177,12 @@ if (!get_child_nodes(node, "flags", nodes)) return; - for (json_object* node : nodes) + for (json_object* node2 : nodes) { - if (!json_object_is_type(node, json_type_string)) + if (!json_object_is_type(node2, json_type_string)) continue; - string flag = json_object_get_string(node); + string flag = json_object_get_string(node2); if (flag == "pmbr_boot") gpt_pmbr_boot = true; @@ -273,12 +273,12 @@ if (!get_child_nodes(node, "flags", nodes)) return; - for (json_object* node : nodes) + for (json_object* node2 : nodes) { - if (!json_object_is_type(node, json_type_string)) + if (!json_object_is_type(node2, json_type_string)) continue; - string flag = json_object_get_string(node); + string flag = json_object_get_string(node2); for (map<unsigned int, const char*>::value_type tmp : id_to_name) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/DevAndSys.cc new/libstorage-ng-4.5.305/storage/SystemInfo/DevAndSys.cc --- old/libstorage-ng-4.5.303/storage/SystemInfo/DevAndSys.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/DevAndSys.cc 2026-03-04 11:04:17.000000000 +0100 @@ -179,7 +179,7 @@ for (const string& line : lines) { - list<string> tmp = splitString(line); + vector<string> tmp = split_string(line); if (tmp.size() >= 3) { string v = tmp.back(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/SystemInfo/ProcMdstat.cc new/libstorage-ng-4.5.305/storage/SystemInfo/ProcMdstat.cc --- old/libstorage-ng-4.5.303/storage/SystemInfo/ProcMdstat.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/SystemInfo/ProcMdstat.cc 2026-03-04 11:04:17.000000000 +0100 @@ -165,14 +165,14 @@ } if (!entry.is_container && boost::starts_with(entry.super, "external:")) { - string::size_type pos1 = entry.super.find_first_of("/"); - string::size_type pos2 = entry.super.find_last_of("/"); + string::size_type pos3 = entry.super.find_first_of("/"); + string::size_type pos4 = entry.super.find_last_of("/"); - if (pos1 != string::npos && pos2 != string::npos && pos1 != pos2) + if (pos3 != string::npos && pos4 != string::npos && pos3 != pos4) { entry.has_container = true; - entry.container_name = string(entry.super, pos1 + 1, pos2 - pos1 - 1); - entry.container_member = string(entry.super, pos2 + 1); + entry.container_name = string(entry.super, pos3 + 1, pos4 - pos3 - 1); + entry.container_member = string(entry.super, pos4 + 1); } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/Utils/AppUtil.cc new/libstorage-ng-4.5.305/storage/Utils/AppUtil.cc --- old/libstorage-ng-4.5.303/storage/Utils/AppUtil.cc 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/Utils/AppUtil.cc 2026-03-04 11:04:17.000000000 +0100 @@ -1,6 +1,6 @@ /* * Copyright (c) [2004-2015] Novell, Inc. - * Copyright (c) [2016-2019] SUSE LLC + * Copyright (c) [2016-2026] SUSE LLC * * All Rights Reserved. * @@ -220,14 +220,14 @@ } - list<string> splitString( const string& s, const string& delChars, - bool multipleDelim, bool skipEmpty, - const string& quotes ) + vector<string> + split_string(const string& s, const string& delChars, bool multipleDelim, + bool skipEmpty, const string& quotes) { string::size_type pos; string::size_type cur = 0; string::size_type nfind = 0; - list<string> ret; + vector<string> ret; while( cur<s.size() && (pos=s.find_first_of(delChars,nfind))!=string::npos ) { @@ -260,25 +260,26 @@ ret.push_back( s.substr( cur )); if( !skipEmpty && !s.empty() && s.find_last_of(delChars)==s.size()-1 ) ret.push_back( "" ); - //y2mil( "ret:" << ret ); - return( ret ); + + return ret; } - map<string,string> - makeMap( const list<string>& l, const string& delim, const string& removeSur ) + map<string, string> + make_map(const vector<string>& l, const string& delim, const string& removeSur) { - map<string,string> ret; - for( list<string>::const_iterator i=l.begin(); i!=l.end(); ++i ) + map<string, string> ret; + + for (const string& s : l) { string k, v; string::size_type pos; - if( (pos=i->find_first_of( delim ))!=string::npos ) + if ((pos = s.find_first_of(delim)) != string::npos) { - k = i->substr( 0, pos ); - string::size_type pos2 = i->find_first_not_of( delim, pos+1 ); + k = s.substr(0, pos); + string::size_type pos2 = s.find_first_not_of(delim, pos + 1); if( pos2 != string::npos ) - v = i->substr( pos2 ); + v = s.substr(pos2); } if( !removeSur.empty() ) { @@ -294,7 +295,8 @@ if( !k.empty() && !v.empty() ) ret[k] = v; } - return( ret ); + + return ret; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/Utils/AppUtil.h new/libstorage-ng-4.5.305/storage/Utils/AppUtil.h --- old/libstorage-ng-4.5.303/storage/Utils/AppUtil.h 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/Utils/AppUtil.h 2026-03-04 11:04:17.000000000 +0100 @@ -1,6 +1,6 @@ /* * Copyright (c) [2004-2015] Novell, Inc. - * Copyright (c) [2016-2019] SUSE LLC + * Copyright (c) [2016-2026] SUSE LLC * * All Rights Reserved. * @@ -31,7 +31,6 @@ #include <locale> #include <string> #include <vector> -#include <list> #include <map> #include <regex> #include <utility> @@ -43,7 +42,6 @@ { using std::string; using std::vector; - using std::list; using std::map; using std::regex; using std::pair; @@ -82,13 +80,12 @@ string extractNthWord(int Num_iv, const string& Line_Cv, bool GetRest_bi = false); - std::list<string> splitString( const string& s, const string& delChars=" \t\n", - bool multipleDelim=true, bool skipEmpty=true, - const string& quotes="" ); - - std::map<string,string> makeMap( const std::list<string>& l, - const string& delim = "=", - const string& removeSur = " \t\n" ); + vector<string> split_string(const string& s, const string& delChars = " \t\n", + bool multipleDelim = true, bool skipEmpty = true, + const string& quotes = ""); + + map<string, string> make_map(const vector<string>& l, const string& delim = "=", + const string& removeSur = " \t\n"); string normalizeDevice(const string& dev); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.303/storage/Utils/StorageTmpl.h new/libstorage-ng-4.5.305/storage/Utils/StorageTmpl.h --- old/libstorage-ng-4.5.303/storage/Utils/StorageTmpl.h 2026-02-25 06:04:18.000000000 +0100 +++ new/libstorage-ng-4.5.305/storage/Utils/StorageTmpl.h 2026-03-04 11:04:17.000000000 +0100 @@ -31,7 +31,6 @@ #include <fstream> #include <sstream> #include <vector> -#include <list> #include <map> #include <set> #include <optional> @@ -63,21 +62,6 @@ } - template<class Value> - std::ostream& operator<<(std::ostream& s, const std::list<Value>& l) - { - s << "<"; - for (typename std::list<Value>::const_iterator it = l.begin(); it != l.end(); ++it) - { - if (it != l.begin()) - s << " "; - s << *it; - } - s << ">"; - return s; - } - - template<class Value> std::ostream& operator<<(std::ostream& s, const std::vector<Value>& l) {
