Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package susepaste for openSUSE:Factory 
checked in at 2022-12-14 14:10:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/susepaste (Old)
 and      /work/SRC/openSUSE:Factory/.susepaste.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "susepaste"

Wed Dec 14 14:10:38 2022 rev:13 rq:1042557 version:0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/susepaste/susepaste.changes      2021-12-08 
22:08:42.706855710 +0100
+++ /work/SRC/openSUSE:Factory/.susepaste.new.1835/susepaste.changes    
2022-12-14 14:10:42.707404837 +0100
@@ -1,0 +2,6 @@
+Thu Dec  8 19:39:48 UTC 2022 - Jacob Michalskie <hel...@opensuse.org>
+
+- Add 0003-susepaste-use-paste-opensuse.org.patch: Replace
+  susepaste.org submission address with paste.opensuse.org 
+
+-------------------------------------------------------------------

New:
----
  0003-susepaste-use-paste-opensuse.org.patch

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

Other differences:
------------------
++++++ susepaste.spec ++++++
--- /var/tmp/diff_new_pack.IZkb4R/_old  2022-12-14 14:10:43.151407121 +0100
+++ /var/tmp/diff_new_pack.IZkb4R/_new  2022-12-14 14:10:43.155407142 +0100
@@ -27,6 +27,7 @@
 Patch0:         0001-susepaste-Fix-parsing-of-returned-Location-header.patch
 # PATCH-FIX-OPENSUSE 0002-susepaste-add-image-paste-info.patch 
malcolmle...@opensuse.org boo#1193400-- Add info on posting an image to 
susepaste in the man page.
 Patch1:         0002-susepaste-add-image-paste-info.patch
+Patch2:         0003-susepaste-use-paste-opensuse.org.patch
 Requires:       bash
 Requires:       curl
 BuildArch:      noarch
@@ -52,6 +53,7 @@
 %setup -q -n susepaste-script-%{version}
 %patch0 -p2
 %patch1 -p1
+%patch2 -p2
 mv gpl-3.0.txt COPYING
 
 %build

++++++ 0003-susepaste-use-paste-opensuse.org.patch ++++++
>From d3163122635831c4790da5206501cd36559af724 Mon Sep 17 00:00:00 2001
From: Jacob Michalskie <hel@lcp.world>
Date: Sun, 4 Dec 2022 19:27:25 +0100
Subject: [PATCH 1/3] Use paste.opensuse.org as the primary address in
 susepaste script

---
 script/susepaste | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/script/susepaste b/script/susepaste
index b09ba16..06d701d 100755
--- a/script/susepaste
+++ b/script/susepaste
@@ -121,17 +121,17 @@ URL="`
 curl -v -F "$TYPE=$INPUT" -F "title=$TITLE"  -F "expire=$EXPIRE"   \
         -F "name=$NICK"   -F "submit=submit" -F "lang=$SYNTAX"     \
        $API_KEY                                                   \
-        ${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
+        ${SCHEMA}://paste.opensuse.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' 
`"
 
 # Check the results and inform the user
 
-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|'`"
+if expr "$URL" : "^${SCHEMA}://paste.opensuse.org/[0-9a-f]\+" > /dev/null; then
+       ID="`echo "$URL" | sed 
's|^'"${SCHEMA}"'://paste.opensuse.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`"
        echo "Pasted as:"
        echo "   ${SCHEMA}://susepaste.org/$ID"
        echo "   ${SCHEMA}://paste.opensuse.org/$ID"
        if [ -x /usr/bin/xclip ]; then
-               echo "${SCHEMA}://susepaste.org/$ID" | xclip -selection 
XA_CLIPBOARD
+               echo "${SCHEMA}://paste.opensuse.org.org/$ID" | xclip 
-selection XA_CLIPBOARD
                echo "Link is also in your clipboard."
        fi
 else

>From 7923a7c5a88b0fa155aea3b2af5a3a60f8bc175f Mon Sep 17 00:00:00 2001
From: Jacob Michalskie <hel@lcp.world>
Date: Sun, 4 Dec 2022 19:28:51 +0100
Subject: [PATCH 2/3] Also use primarily paste.opensuse.org in
 susepaste-screenshot

---
 script/susepaste-screenshot | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/script/susepaste-screenshot b/script/susepaste-screenshot
index 057d41f..42bd0f7 100755
--- a/script/susepaste-screenshot
+++ b/script/susepaste-screenshot
@@ -96,19 +96,19 @@ URL="`
 curl -v -F "file=@$TMP" -F "title=$TITLE"  -F "expire=$EXPIRE"     \
         -F "name=$NICK" -F "submit=submit" -F "lang=image"         \
         $API_KEY                                                   \
-        http://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
+        http://paste.opensuse.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
 
 rm -f "$TMP"
 
 # 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" : "^http://paste.opensuse.org/[0-9a-f]\+"; > /dev/null; then
+       ID="`echo "$URL" | sed 
's|^http://paste.opensuse.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`"
 TEXT="Pasted as:
    http://susepaste.org/$ID
    http://paste.opensuse.org/$ID";
        if [ -x /usr/bin/xclip ]; then
-               echo "http://susepaste.org/$ID"; | xclip -selection XA_CLIPBOARD
+               echo "http://paste.opensuse.org/$ID"; | xclip -selection 
XA_CLIPBOARD
                TEXT="$TEXT
 Link is also in your clipboard."
        fi

>From c6646fd86475f480f62de6b8bf57d3f653c55d32 Mon Sep 17 00:00:00 2001
From: Jacob Michalskie <hel@lcp.world>
Date: Sun, 4 Dec 2022 22:00:35 +0100
Subject: [PATCH 3/3] Get rid of additional .org

---
 script/susepaste | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/susepaste b/script/susepaste
index 06d701d..3504c15 100755
--- a/script/susepaste
+++ b/script/susepaste
@@ -131,7 +131,7 @@ if expr "$URL" : 
"^${SCHEMA}://paste.opensuse.org/[0-9a-f]\+" > /dev/null; then
        echo "   ${SCHEMA}://susepaste.org/$ID"
        echo "   ${SCHEMA}://paste.opensuse.org/$ID"
        if [ -x /usr/bin/xclip ]; then
-               echo "${SCHEMA}://paste.opensuse.org.org/$ID" | xclip 
-selection XA_CLIPBOARD
+               echo "${SCHEMA}://paste.opensuse.org/$ID" | xclip -selection 
XA_CLIPBOARD
                echo "Link is also in your clipboard."
        fi
 else

Reply via email to