[packages/sprunge] - ver 0.4; avoid automatic pasting from x clipboard - too easy to paste something important

arekm arekm at pld-linux.org
Tue Jun 9 16:02:06 CEST 2015


commit e6ee11fa9e3bbbb9062704a056b6e4aded70bebb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jun 9 16:02:01 2015 +0200

    - ver 0.4; avoid automatic pasting from x clipboard - too easy to paste something important

 avoid.patch  | 2 +-
 sprunge.spec | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/sprunge.spec b/sprunge.spec
index c1a8c03..aae2482 100644
--- a/sprunge.spec
+++ b/sprunge.spec
@@ -1,6 +1,6 @@
 Summary:	Command line Pastebin-like
 Name:		sprunge
-Version:	0.3
+Version:	0.4
 Release:	1
 License:	GPL
 Group:		Applications/Networking
@@ -8,6 +8,7 @@ URL:		http://sprunge.us/
 Source0:	https://raw.githubusercontent.com/grawity/code/master/net/%{name}
 # Source0-md5:	a8806f1f53e21bb514f02e5ae6c00a54
 Patch0:		shebang.patch
+Patch1:		avoid.patch
 Requires:	attr
 Requires:	curl
 Suggests:	xclip
@@ -22,6 +23,7 @@ command line pastebin.
 %setup -qcT
 install -p %{SOURCE0} .
 %patch0 -p1
+%patch1 -p0
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/avoid.patch b/avoid.patch
index 3e39f55..2c3288f 100644
--- a/avoid.patch
+++ b/avoid.patch
@@ -5,7 +5,7 @@
  
  getsel() {
 +	# too easy to put something important onto sprunge
-+	return false
++	return
  	if have xclip; then
  		xclip -out -selection primary
  	elif have xsel; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sprunge.git/commitdiff/e6ee11fa9e3bbbb9062704a056b6e4aded70bebb



More information about the pld-cvs-commit mailing list