Hello community,

here is the log from the commit of package susepaste for openSUSE:Factory 
checked in at 2020-04-01 19:12:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/susepaste (Old)
 and      /work/SRC/openSUSE:Factory/.susepaste.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "susepaste"

Wed Apr  1 19:12:29 2020 rev:10 rq:790650 version:0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/susepaste/susepaste.changes      2019-08-28 
18:37:00.909267711 +0200
+++ /work/SRC/openSUSE:Factory/.susepaste.new.3248/susepaste.changes    
2020-04-01 19:14:03.047415373 +0200
@@ -1,0 +2,7 @@
+Tue Mar 31 17:24:07 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Add 0001-susepaste-Fix-parsing-of-returned-Location-header.patch:
+  fix parsing of location header returned by susepaste.org
+  (boo#116669).
+
+-------------------------------------------------------------------

New:
----
  0001-susepaste-Fix-parsing-of-returned-Location-header.patch

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

Other differences:
------------------
++++++ susepaste.spec ++++++
--- /var/tmp/diff_new_pack.VDlK81/_old  2020-04-01 19:14:04.439415999 +0200
+++ /var/tmp/diff_new_pack.VDlK81/_new  2020-04-01 19:14:04.439415999 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package susepaste
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,8 +22,9 @@
 Summary:        Script for using openSUSE paste
 License:        GPL-3.0-only
 Group:          Productivity/Other
-URL:            http://susepaste.org
+URL:            https://susepaste.org
 Source0:        susepaste-script-%{version}.tar.bz2
+Patch0:         0001-susepaste-Fix-parsing-of-returned-Location-header.patch
 Requires:       bash
 Requires:       curl
 BuildArch:      noarch
@@ -47,6 +48,7 @@
 
 %prep
 %setup -q -n susepaste-script-%{version}
+%patch0 -p2
 mv gpl-3.0.txt COPYING
 
 %build
@@ -64,15 +66,15 @@
   %{buildroot}%{_datadir}/susepaste/lang-mappings.sed
 
 %files
-%doc COPYING
+%license COPYING
 %{_bindir}/%{name}
 %{_datadir}/susepaste/lang-mappings.sed
 %dir %{_datadir}/susepaste
-%{_mandir}/man1/%{name}.1%{ext_man}
+%{_mandir}/man1/%{name}.1%{?ext_man}
 
 %files screenshot
-%doc COPYING
+%license COPYING
 %{_bindir}/%{name}-screenshot
-%{_mandir}/man1/%{name}-screenshot.1%{ext_man}
+%{_mandir}/man1/%{name}-screenshot.1%{?ext_man}
 
 %changelog

++++++ 0001-susepaste-Fix-parsing-of-returned-Location-header.patch ++++++
>From 86a31fca451c5242f216f6a7eb87ec43de749925 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <[email protected]>
Date: Tue, 31 Mar 2020 19:12:44 +0200
Subject: [PATCH] susepaste: Fix parsing of returned Location header

---
 script/susepaste            | 2 +-
 script/susepaste-screenshot | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/susepaste b/script/susepaste
index f2fceec..b09ba16 100755
--- a/script/susepaste
+++ b/script/susepaste
@@ -121,7 +121,7 @@ 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|<\ Location:\ ||p' `"
+        ${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
 
 # Check the results and inform the user
 
diff --git a/script/susepaste-screenshot b/script/susepaste-screenshot
index cb75337..057d41f 100755
--- a/script/susepaste-screenshot
+++ b/script/susepaste-screenshot
@@ -96,7 +96,7 @@ 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|<\ Location:\ ||p' `"
+        http://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
 
 rm -f "$TMP"
 
-- 
2.26.0


Reply via email to