Accepting request 1006651 from GNOME:Next

OBS-URL: https://build.opensuse.org/request/show/1006651
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/tracker?expand=0&rev=241
This commit is contained in:
Bjørn Lie 2022-09-28 12:01:49 +00:00 committed by Git OBS Bridge
parent d78fc4c412
commit 6970401d47
3 changed files with 28 additions and 0 deletions

21
tracker-no-egrep.patch Normal file
View File

@ -0,0 +1,21 @@
diff -Nur orig-tracker-3.4.0/src/tracker/bash-completion/tracker tracker-3.4.0/src/tracker/bash-completion/tracker
--- orig-tracker-3.4.0/src/tracker/bash-completion/tracker 2022-09-17 23:23:06.000000000 +0200
+++ tracker-3.4.0/src/tracker/bash-completion/tracker 2022-09-23 15:37:54.149593212 +0200
@@ -8,7 +8,7 @@
cur=${COMP_WORDS[COMP_CWORD]}
if [[ $cword == 1 ]]; then
- possible=`tracker3 | egrep " [a-z].* " | awk '{ print ($1) }' | sort | uniq`
+ possible=`tracker3 | grep -E " [a-z].* " | awk '{ print ($1) }' | sort | uniq`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
return 0;
fi
@@ -37,7 +37,7 @@
fi
if [[ -z $cur ]] || [[ $cur == -* ]]; then
- possible=`${words[0]} ${words[1]} -h | egrep "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed "s/,/\n/g" | sed "s/=.*//"`
+ possible=`${words[0]} ${words[1]} -h | grep -E "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed "s/,/\n/g" | sed "s/=.*//"`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
fi
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 23 13:40:16 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Add tracker-no-egrep.patch: Replace usage of egrep with grep -E
-------------------------------------------------------------------
Sun Sep 18 08:34:45 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -28,6 +28,8 @@ License: GPL-2.0-or-later
Group: Productivity/Other
URL: https://wiki.gnome.org/Projects/Tracker
Source0: https://download.gnome.org/sources/tracker/3.4/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM tracker-no-egrep.patch -- Replace usage of egrep with grep -E
Patch0: tracker-no-egrep.patch
BuildRequires: asciidoc
BuildRequires: fdupes