Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package wofi-pass for openSUSE:Factory 
checked in at 2023-05-20 17:23:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wofi-pass (Old)
 and      /work/SRC/openSUSE:Factory/.wofi-pass.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wofi-pass"

Sat May 20 17:23:34 2023 rev:4 rq:1087972 version:0.0~git.1684513404.072991c

Changes:
--------
--- /work/SRC/openSUSE:Factory/wofi-pass/wofi-pass.changes      2023-01-31 
16:22:30.914431698 +0100
+++ /work/SRC/openSUSE:Factory/.wofi-pass.new.1533/wofi-pass.changes    
2023-05-20 17:23:36.601541142 +0200
@@ -1,0 +2,11 @@
+Fri May 19 16:28:44 UTC 2023 - mc...@cepl.eu
+
+- Update to version 0.0~git.1684513404.072991c:
+  * Allow alternative use of rofi, if wofi is not available.
+  * remove useless and not escaped EOL marker
+  * remove bashism
+  * fix single field selection
+  * only prompt for the field if there are more than one
+- Remove wofi-pass-rpmlintrc as it is not needed anymore.
+
+-------------------------------------------------------------------

Old:
----
  wofi-pass-0.0~git.1646651169.572c0ef.tar.gz
  wofi-pass-rpmlintrc

New:
----
  wofi-pass-0.0~git.1684513404.072991c.tar.gz

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

Other differences:
------------------
++++++ wofi-pass.spec ++++++
--- /var/tmp/diff_new_pack.qD0xkn/_old  2023-05-20 17:23:37.129544147 +0200
+++ /var/tmp/diff_new_pack.qD0xkn/_new  2023-05-20 17:23:37.133544169 +0200
@@ -17,13 +17,12 @@
 
 
 Name:           wofi-pass
-Version:        0.0~git.1646651169.572c0ef
+Version:        0.0~git.1684513404.072991c
 Release:        0
 Summary:        Wofi frontend for pass
 License:        GPL-2.0-only
 URL:            https://gitlab.com/muhq/wofi-pass
 Source0:        wofi-pass-%{version}.tar.gz
-Source99:       wofi-pass-rpmlintrc
 # PATCH-FEATURE-OPENSUSE sway-branding.patch mc...@suse.com
 # Use branding stylesheet in /etc/wofi/style.css
 Patch0:         sway-branding.patch
@@ -44,7 +43,7 @@
 choose which field to copy/print.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 :

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.qD0xkn/_old  2023-05-20 17:23:37.177544420 +0200
+++ /var/tmp/diff_new_pack.qD0xkn/_new  2023-05-20 17:23:37.181544443 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://gitlab.com/muhq/wofi-pass.git</param>
-              <param 
name="changesrevision">572c0efeb541202f74c539b31d230f595cced1fd</param></service></servicedata>
+              <param 
name="changesrevision">072991c6ef73cc8717f64f5703d47d3323faff8a</param></service></servicedata>
 (No newline at EOF)
 

++++++ sway-branding.patch ++++++
--- /var/tmp/diff_new_pack.qD0xkn/_old  2023-05-20 17:23:37.189544489 +0200
+++ /var/tmp/diff_new_pack.qD0xkn/_new  2023-05-20 17:23:37.193544511 +0200
@@ -1,25 +1,16 @@
 ---
- wofi-pass |    4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ wofi-pass |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
 --- a/wofi-pass
 +++ b/wofi-pass
-@@ -91,7 +91,7 @@ fi
- cd "${PASSWORD_STORE_DIR:-$HOME/.password-store}"
- password_files="$(find . -name "*.gpg" | sed "s/^\.\/\(.*\)\.gpg$/\1/")"
+@@ -13,7 +13,7 @@ head=0
+ TYPE_CMD="wl-copy"
  
--password=$(printf '%s\n' "$password_files" | wofi --dmenu)
-+password=$(printf '%s\n' "$password_files" | wofi --dmenu 
--style=/etc/wofi/style.css)
- [ -n "$password" ] || exit
- if [ "$head" -eq 1 ]; then
-       _pass_get "password" | $TYPE_CMD
-@@ -100,7 +100,7 @@ fi
- 
- field_list="$(_parse_fields)"
- if [ "$autotype" -ne 1 ]; then
--      field=$(printf '%s\n' "$field_list" | wofi --dmenu)
-+      field=$(printf '%s\n' "$field_list" | wofi --dmenu 
--style=/etc/wofi/style.css)
-       if [ "$field" != "autotype" ]; then
-               _pass_get "$field" | $TYPE_CMD
-               exit
+ if [ -x "$(command -v -p wofi 2>/dev/null)" ] ; then
+-    menu_cmd='wofi --dmenu'
++    menu_cmd='wofi --dmenu --style=/etc/wofi/style.css'
+ else
+     menu_cmd='rofi -dmenu'
+ fi
 

++++++ wofi-pass-0.0~git.1646651169.572c0ef.tar.gz -> 
wofi-pass-0.0~git.1684513404.072991c.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wofi-pass-0.0~git.1646651169.572c0ef/wofi-pass 
new/wofi-pass-0.0~git.1684513404.072991c/wofi-pass
--- old/wofi-pass-0.0~git.1646651169.572c0ef/wofi-pass  2022-03-07 
12:06:09.000000000 +0100
+++ new/wofi-pass-0.0~git.1684513404.072991c/wofi-pass  2023-05-19 
18:23:24.000000000 +0200
@@ -12,6 +12,12 @@
 head=0
 TYPE_CMD="wl-copy"
 
+if [ -x "$(command -v -p wofi 2>/dev/null)" ] ; then
+    menu_cmd='wofi --dmenu'
+else
+    menu_cmd='rofi -dmenu'
+fi
+
 _trim() {
     var="$*"
     # remove leading whitespace characters
@@ -49,7 +55,7 @@
 }
 
 _pass_field() {
-       _trim "$(pass show "$password" | tail -n+2 | grep "^${*}:.*$" | cut -d: 
-f1 -s --complement)"
+       _trim "$(pass show "$password" | tail -n+2 | grep "^${*}:.*" | cut -d: 
-f1 -s --complement)"
 }
 
 _pass_get() {
@@ -91,7 +97,7 @@
 cd "${PASSWORD_STORE_DIR:-$HOME/.password-store}"
 password_files="$(find . -name "*.gpg" | sed "s/^\.\/\(.*\)\.gpg$/\1/")"
 
-password=$(printf '%s\n' "$password_files" | wofi --dmenu)
+password=$(printf '%s\n' "$password_files" | eval "${menu_cmd}")
 [ -n "$password" ] || exit
 if [ "$head" -eq 1 ]; then
        _pass_get "password" | $TYPE_CMD
@@ -99,8 +105,13 @@
 fi
 
 field_list="$(_parse_fields)"
+nfields=$(printf '%s\n' "$field_list" | wc -l)
 if [ "$autotype" -ne 1 ]; then
-       field=$(printf '%s\n' "$field_list" | wofi --dmenu)
+       field='password'
+       if  [ "$nfields" -gt 1 ]; then
+               field=$(printf '%s\n' "$field_list" | eval "${menu_cmd}")
+       fi
+
        if [ "$field" != "autotype" ]; then
                _pass_get "$field" | $TYPE_CMD
                exit

Reply via email to