Hello community,

here is the log from the commit of package susepaste for openSUSE:Factory 
checked in at 2019-08-13 13:22:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/susepaste (Old)
 and      /work/SRC/openSUSE:Factory/.susepaste.new.9556 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "susepaste"

Tue Aug 13 13:22:22 2019 rev:8 rq:722571 version:0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/susepaste/susepaste.changes      2017-11-27 
22:17:48.591944096 +0100
+++ /work/SRC/openSUSE:Factory/.susepaste.new.9556/susepaste.changes    
2019-08-13 13:23:00.781390775 +0200
@@ -1,0 +2,8 @@
+Sun Aug 11 15:17:41 UTC 2019 - Michal Hrusecky <[email protected]>
+
+- updated to version 0.6
+  - error out when pasting unreadable file
+  - fix one bashism
+  - allow to specify protocol
+
+-------------------------------------------------------------------

Old:
----
  susepaste-script-0.5.tar.bz2

New:
----
  susepaste-script-0.6.tar.bz2

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

Other differences:
------------------
++++++ susepaste.spec ++++++
--- /var/tmp/diff_new_pack.Ij5G7S/_old  2019-08-13 13:23:01.209390663 +0200
+++ /var/tmp/diff_new_pack.Ij5G7S/_new  2019-08-13 13:23:01.213390662 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package susepaste
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,15 +12,15 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           susepaste
-Version:        0.5
+Version:        0.6
 Release:        0
 Summary:        Simple script for using openSUSE paste easily
-License:        GPL-3.0
+License:        GPL-3.0-only
 Group:          Productivity/Other
 Url:            http://susepaste.org
 Source0:        susepaste-script-%{version}.tar.bz2

++++++ susepaste-script-0.5.tar.bz2 -> susepaste-script-0.6.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/susepaste-script-0.5/susepaste 
new/susepaste-script-0.6/susepaste
--- old/susepaste-script-0.5/susepaste  2011-04-21 16:01:47.000000000 +0200
+++ new/susepaste-script-0.6/susepaste  2019-08-11 17:16:58.100253110 +0200
@@ -55,11 +55,14 @@
        "x-k" )
                KEY="$2"
                shift 2 ;;
+        "x-s" )
+                SCHEMA="$2"
+                shift 2 ;;
        * )
                echo "openSUSE Paste script"
                echo ""
                echo " usage:"
-               echo "   susepaste [-f format] [-n nick] [-t title] [-e expire] 
[file]"
+               echo "   susepaste [-f format] [-n nick] [-t title] [-e expire] 
[-s schema] [file]"
                echo ""
                exit 0 ;;
        esac
@@ -76,7 +79,11 @@
 
 # Do we want to use stdin or paste content of the file?
 
-if [ -r "$1" ]; then
+if [ "$1" ]; then
+       if [ \! -r "$1" ]; then
+               echo "Can't read $1"
+               exit 2
+       fi
        INPUT="<$1"
        [ "$TITLE" ] || TITLE="`basename $1`"
        TMP=""
@@ -105,7 +112,8 @@
 [ "$SYNTAX"   ] || SYNTAX="text"
 # Time to live for your paste in minutes (for possible values check the 
documentation)
 [ "$EXPIRE"   ] || EXPIRE=60
-
+# Should SSL be used as schema
+[ "$SCHEMA"   ] || SCHEMA=https
 
 # Real pasting and getting back the URL of the paste
 
@@ -113,17 +121,17 @@
 curl -v -F "$TYPE=$INPUT" -F "title=$TITLE"  -F "expire=$EXPIRE"   \
         -F "name=$NICK"   -F "submit=submit" -F "lang=$SYNTAX"     \
        $API_KEY                                                   \
-        http://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `"
+        ${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `"
 
 # Check the results and inform the user
 
-if expr "$URL" : "^http://susepaste.org/[0-9a-f]\+"; > /dev/null; then
-       ID="`echo "$URL" | sed 
's|^http://susepaste.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`"
+if expr "$URL" : "^${SCHEMA}://susepaste.org/[0-9a-f]\+" > /dev/null; then
+       ID="`echo "$URL" | sed 
's|^'"${SCHEMA}"'://susepaste.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`"
        echo "Pasted as:"
-       echo "   http://susepaste.org/$ID";
-       echo "   http://paste.opensuse.org/$ID";
+       echo "   ${SCHEMA}://susepaste.org/$ID"
+       echo "   ${SCHEMA}://paste.opensuse.org/$ID"
        if [ -x /usr/bin/xclip ]; then
-               echo "http://susepaste.org/$ID"; | xclip -selection XA_CLIPBOARD
+               echo "${SCHEMA}://susepaste.org/$ID" | xclip -selection 
XA_CLIPBOARD
                echo "Link is also in your clipboard."
        fi
 else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/susepaste-script-0.5/susepaste-screenshot 
new/susepaste-script-0.6/susepaste-screenshot
--- old/susepaste-script-0.5/susepaste-screenshot       2011-04-21 
16:01:47.000000000 +0200
+++ new/susepaste-script-0.6/susepaste-screenshot       2019-08-11 
17:16:58.100253110 +0200
@@ -82,7 +82,7 @@
 
 # Real pasting and getting back the URL of the paste
 
-if [ "xselect" == "x$WINDOW" ]; then
+if [ "xselect" = "x$WINDOW" ]; then
        WINDOW="`LANG=C wmctrl -v -a :SELECT: 2>&1 | sed -n 's|Using\ 
window:[[:blank:]]*0x\([0-9]*\)|0x\1|p'`"
        [ "$TITLE"    ] || TITLE="`wmctrl -l | sed -n 
"s|$WINDOW[[:blank:]]\+[^[:blank:]]\+[[:blank:]]\+[^[:blank:]]\+[[:blank:]]\+\(.*\)|\1|p"`"
 else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/susepaste-script-0.5/susepaste.1 
new/susepaste-script-0.6/susepaste.1
--- old/susepaste-script-0.5/susepaste.1        2011-04-21 16:01:47.000000000 
+0200
+++ new/susepaste-script-0.6/susepaste.1        2019-08-11 17:16:58.100253110 
+0200
@@ -220,6 +220,13 @@
      \fI1209600\fR        2 Years
      \fI1814400\fR        3 Years
      \fI0\fR                Never
+.TP
+-s \fBSCHEMA\fR
+what schema should be used for pasting. Default is https,
+possible values are:
+     \fIhttp\fR            use http
+     \fIhttps\fR           use https
+
 
 .SH EXAMPLES
 


Reply via email to