Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2024-01-03 12:30:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and      /work/SRC/openSUSE:Factory/.opi.new.28375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opi"

Wed Jan  3 12:30:21 2024 rev:54 rq:1136186 version:4.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/opi/opi.changes  2023-12-15 21:51:14.266865471 
+0100
+++ /work/SRC/openSUSE:Factory/.opi.new.28375/opi.changes       2024-01-03 
12:31:02.372741055 +0100
@@ -1,0 +2,8 @@
+Tue Jan  2 13:54:57 UTC 2024 - Dominik Heidler <[email protected]>
+
+- Version 4.4.0
+  * Match repos by alias when searching local repos
+  * Rephrase OSS alternative hints
+  * Fix typo in rpmbuild.py
+
+-------------------------------------------------------------------

Old:
----
  opi-4.3.0.tar.gz

New:
----
  _service
  opi-4.4.0.tar.gz

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

Other differences:
------------------
++++++ opi.spec ++++++
--- /var/tmp/diff_new_pack.FBsr0T/_old  2024-01-03 12:31:02.832757878 +0100
+++ /var/tmp/diff_new_pack.FBsr0T/_new  2024-01-03 12:31:02.832757878 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package opi
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           opi
-Version:        4.3.0
+Version:        4.4.0
 Release:        0
 Summary:        OBS Package Installer (CLI)
 License:        GPL-3.0-only

++++++ _service ++++++
<services>
  <service name="download_files" mode="localonly" />
</services>

++++++ opi-4.3.0.tar.gz -> opi-4.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-4.3.0/opi/__init__.py 
new/opi-4.4.0/opi/__init__.py
--- old/opi-4.3.0/opi/__init__.py       2023-12-15 19:10:00.000000000 +0100
+++ new/opi-4.4.0/opi/__init__.py       2024-01-02 14:54:50.000000000 +0100
@@ -186,23 +186,26 @@
        """
        search_results = defaultdict(list)
        try:
-               sr = subprocess.check_output(['zypper', '-n', '--no-refresh', 
'se', '-sx', '-tpackage', package], env={'LANG': 'c'}).decode()
+               zc = tempfile.NamedTemporaryFile('w')
+               zc.file.write(f'[main]\nshowAlias = true\n')
+               zc.file.flush()
+               sr = subprocess.check_output(['zypper', '-ntc', zc.name, 
'--no-refresh', 'se', '-sx', '-tpackage', package], env={'LANG': 'c'}).decode()
                for line in re.split(r'-\+-+\n', sr, 
re.MULTILINE)[1].strip().split('\n'):
-                       version, arch, repo_name = [s.strip() for s in 
line.split('|')[3:]]
+                       version, arch, repo_alias = [s.strip() for s in 
line.split('|')[3:]]
                        version, release = version.split('-')
                        if arch not in (get_cpu_arch(), 'noarch'):
                                continue
-                       if repo_name == '(System Packages)':
+                       if repo_alias == '(System Packages)':
                                continue
-                       search_results[repo_name].append({'version': version, 
'release': release, 'arch': arch})
+                       search_results[repo_alias].append({'version': version, 
'release': release, 'arch': arch})
        except subprocess.CalledProcessError as e:
                if e.returncode != 104:
                        # 104 ZYPPER_EXIT_INF_CAP_NOT_FOUND is returned if 
there are no results
                        raise # TODO: don't exit program, use exception that 
will be handled in repo_query except block
 
-       repos_by_name = {repo.name_expanded(): repo for repo in get_repos()}
+       repos_by_alias = {repo.alias: repo for repo in get_repos()}
        local_installables = []
-       for repo_name, installables in search_results.items():
+       for repo_alias, installables in search_results.items():
                # get the newest package for each repo
                try:
                        installables.sort(key=lambda p: 
cmp_to_key(rpm.labelCompare)("%(version)s-%(release)s" % p))
@@ -211,7 +214,7 @@
                        installables.sort(key=lambda p: 
cmp_to_key(rpm.labelCompare)(['1', p['version'], p['release']]))
                installable = installables[-1]
 
-               installable['repository'] = repos_by_name[repo_name]
+               installable['repository'] = repos_by_alias[repo_alias]
                installable['name'] = package
                # filter out OBS/Packman repos as they are already searched via 
OBS/Packman API
                if 'download.opensuse.org/repositories' in 
installable['repository'].url:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-4.3.0/opi/plugins/plex.py 
new/opi-4.4.0/opi/plugins/plex.py
--- old/opi-4.3.0/opi/plugins/plex.py   2023-12-15 19:10:00.000000000 +0100
+++ new/opi-4.4.0/opi/plugins/plex.py   2024-01-02 14:54:50.000000000 +0100
@@ -3,7 +3,7 @@
 
 class PlexMediaServer(BasePlugin):
        main_query = 'plex'
-       description = 'Plex Media Server (proprietary alternative to jellyfin)'
+       description = 'Plex Media Server (See OSS alternative jellyfin)'
        queries = ['plex', 'plexmediaserver']
 
        @classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-4.3.0/opi/plugins/resilio-sync.py 
new/opi-4.4.0/opi/plugins/resilio-sync.py
--- old/opi-4.3.0/opi/plugins/resilio-sync.py   2023-12-15 19:10:00.000000000 
+0100
+++ new/opi-4.4.0/opi/plugins/resilio-sync.py   2024-01-02 14:54:50.000000000 
+0100
@@ -3,7 +3,7 @@
 
 class ResilioSync(BasePlugin):
        main_query = 'resilio-sync'
-       description = 'Decentralized file sync between devices using bittorrent 
protocol (proprietary alternative to syncthing)'
+       description = 'Decentralized file sync between devices using bittorrent 
protocol (See OSS alternative syncthing)'
        queries = ['resilio-sync', 'resilio', 'rslsync']
 
        @classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-4.3.0/opi/rpmbuild.py 
new/opi-4.4.0/opi/rpmbuild.py
--- old/opi-4.3.0/opi/rpmbuild.py       2023-12-15 19:10:00.000000000 +0100
+++ new/opi-4.4.0/opi/rpmbuild.py       2024-01-02 14:54:50.000000000 +0100
@@ -17,7 +17,7 @@
                link_target = os.readlink(src)
                os.symlink(link_target, dst)
        elif os.path.isfile(src):
-               shitil.copy2(src, dst)
+               shutil.copy2(src, dst)
        else:
                shutil.copytree(src, dst, copy_function=os.link, symlinks=True, 
ignore_dangling_symlinks=False)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-4.3.0/opi/version.py new/opi-4.4.0/opi/version.py
--- old/opi-4.3.0/opi/version.py        2023-12-15 19:10:00.000000000 +0100
+++ new/opi-4.4.0/opi/version.py        2024-01-02 14:54:50.000000000 +0100
@@ -1 +1 @@
-__version__ = '4.3.0'
+__version__ = '4.4.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-4.3.0/opi.changes new/opi-4.4.0/opi.changes
--- old/opi-4.3.0/opi.changes   2023-12-15 19:10:00.000000000 +0100
+++ new/opi-4.4.0/opi.changes   2024-01-02 14:54:50.000000000 +0100
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+Tue Jan  2 13:54:28 UTC 2024 - Dominik Heidler <[email protected]>
+
+- Version 4.4.0
+  * Match repos by alias when searching local repos
+  * Rephrase OSS alternative hints
+  * Fix typo in rpmbuild.py
+
+-------------------------------------------------------------------
 Fri Dec 15 18:09:52 UTC 2023 - Dominik Heidler <[email protected]>
 
 - Version 4.3.0

Reply via email to