Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package powerline-go for openSUSE:Factory 
checked in at 2025-05-20 09:37:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powerline-go (Old)
 and      /work/SRC/openSUSE:Factory/.powerline-go.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powerline-go"

Tue May 20 09:37:14 2025 rev:3 rq:1278288 version:1.25

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerline-go/powerline-go.changes        
2023-07-18 21:54:10.942313505 +0200
+++ /work/SRC/openSUSE:Factory/.powerline-go.new.30101/powerline-go.changes     
2025-05-20 09:39:29.865130925 +0200
@@ -1,0 +2,7 @@
+Sun May 18 09:10:09 UTC 2025 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.25:
+  * feat: virtualenv improvements
+  * Fix for empty string value from pyvenv.cfg parsing
+
+-------------------------------------------------------------------
@@ -69,3 +76 @@
-
-Several bugfixes and improvements thanks to the help from many contributors :)
-- 
+- Several bugfixes and improvements thanks to the help from many contributors 
:)

Old:
----
  powerline-go-1.24.tar.gz

New:
----
  powerline-go-1.25.tar.gz

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

Other differences:
------------------
++++++ powerline-go.spec ++++++
--- /var/tmp/diff_new_pack.XQsC7K/_old  2025-05-20 09:39:30.433157103 +0200
+++ /var/tmp/diff_new_pack.XQsC7K/_new  2025-05-20 09:39:30.433157103 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package powerline-go
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 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:           powerline-go
-Version:        1.24
+Version:        1.25
 Release:        0
 Summary:        A Powerline like prompt for Bash, ZSH and Fish
 License:        GPL-3.0-or-later
@@ -26,7 +26,7 @@
 Source0:        
https://github.com/justjanne/powerline-go/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        vendor.tar.gz
 BuildRequires:  golang-packaging
-BuildRequires:  golang(API) = 1.20
+BuildRequires:  golang(API) = 1.24
 %{go_nostrip}
 
 %description

++++++ _service ++++++
--- /var/tmp/diff_new_pack.XQsC7K/_old  2025-05-20 09:39:30.465158576 +0200
+++ /var/tmp/diff_new_pack.XQsC7K/_new  2025-05-20 09:39:30.465158576 +0200
@@ -1,5 +1,5 @@
 <services>
-    <service name="download_files" mode="disabled"/>
-    <service name="go_modules" mode="disabled" />
+    <service name="download_files" mode="manual"/>
+    <service name="go_modules" mode="manual" />
 </services>
 

++++++ powerline-go-1.24.tar.gz -> powerline-go-1.25.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerline-go-1.24/segment-virtualenv.go 
new/powerline-go-1.25/segment-virtualenv.go
--- old/powerline-go-1.24/segment-virtualenv.go 2023-05-25 11:04:53.000000000 
+0200
+++ new/powerline-go-1.25/segment-virtualenv.go 2024-06-17 14:39:19.000000000 
+0200
@@ -3,6 +3,7 @@
 import (
        "os"
        "path"
+       "strings"
 
        "gopkg.in/ini.v1"
 
@@ -10,13 +11,27 @@
 )
 
 func segmentVirtualEnv(p *powerline) []pwl.Segment {
-       var env string
+       env := os.Getenv("VIRTUAL_ENV_PROMPT")
+       if strings.HasPrefix(env, "(") && strings.HasSuffix(env, ") ") {
+               env = strings.TrimPrefix(env, "(")
+               env = strings.TrimSuffix(env, ") ")
+       }
        if env == "" {
-               env, _ = os.LookupEnv("VIRTUAL_ENV")
-               if env != "" {
-                       cfg, err := ini.Load(path.Join(env, "pyvenv.cfg"))
+               venv, _ := os.LookupEnv("VIRTUAL_ENV")
+               if venv != "" {
+                       cfg, err := ini.Load(path.Join(venv, "pyvenv.cfg"))
                        if err == nil {
-                               env = cfg.Section("").Key("prompt").String()
+                               // python >= 3.6 the venv module will not 
insert a prompt
+                               // key unless the `--prompt` flag is passed to 
the module
+                               // or if calling with the prompt arg EnvBuilder
+                               // otherwise env evaluates to an empty string, 
per return
+                               // of ini.File.Section.Key
+                               if pyEnv := 
cfg.Section("").Key("prompt").String(); pyEnv != "" {
+                                       env = pyEnv
+                               }
+                       }
+                       if env == "" {
+                               env = venv
                        }
                }
        }

++++++ vendor.tar.gz ++++++

Reply via email to