]> git.pld-linux.org Git - packages/abrt.git/commitdiff
profile script: do not leak vars, do not run if not interactive auto/th/abrt-2.2.0-2
authorElan Ruusamäe <glen@delfi.ee>
Mon, 5 May 2014 06:14:58 +0000 (09:14 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 5 May 2014 06:14:58 +0000 (09:14 +0300)
abrt.spec
profile.sh.patch [new file with mode: 0644]

index 00213d45f8578eece373d7657cd62d7778905ed5..ff40aaa6297dea0fcbeff05dee34d098f1566cba 100644 (file)
--- a/abrt.spec
+++ b/abrt.spec
@@ -8,7 +8,7 @@ Summary:        Automatic bug detection and reporting tool
 Summary(pl.UTF-8):     Narzędzie do automatycznego wykrywania i zgłaszania błędów
 Name:          abrt
 Version:       2.2.0
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Applications/System
 Source0:       https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
@@ -19,6 +19,7 @@ Patch1:               %{name}-rpm45.patch
 Patch2:                format_security.patch
 Patch3:                %{name}-link.patch
 Patch4:                %{name}-po.patch
+Patch5:                profile.sh.patch
 URL:           https://fedorahosted.org/abrt/
 BuildRequires: asciidoc
 BuildRequires: autoconf >= 2.50
@@ -441,6 +442,7 @@ się do powłoki.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{__libtoolize}
diff --git a/profile.sh.patch b/profile.sh.patch
new file mode 100644 (file)
index 0000000..42bb5ea
--- /dev/null
@@ -0,0 +1,15 @@
+--- abrt-2.2.0/src/cli/abrt-console-notification.sh~   2013-09-13 15:23:35.000000000 +0300
++++ abrt-2.2.0/src/cli/abrt-console-notification.sh    2014-05-05 09:13:58.060354676 +0300
+@@ -1,3 +1,6 @@
++# Not an interactive shell?
++[[ $- == *i* ]] || return 0
++
+ LPATHDIR="$HOME/.cache/abrt"
+ SINCEFILE="$LPATHDIR/lastnotification"
+@@ -19,3 +22,5 @@
+ fi
+ abrt-cli status --since="$SINCE" 2> /dev/null
++
++unset LPATHDIR SINCEFILE TMPPATH
This page took 0.138892 seconds and 4 git commands to generate.